This is a templated, self-contained, single header implementation C++ class for parsing array slice operator strings that specify a min, max, and stride, such as "1:10:2", "::3" or "-1,-5,-2". There is an option to use any offset based indexing desired, such as 0-based for C/Python arrays, or 1-based for Fortran/MATLAB indexing. Reverse indexing is allowed, as well as relative to an array end. This class won't do the actual slice/sampling of an array; instead it only parses a string and returns the index limits and stride, or an STL vector of indices if desired.

Project Activity

See All Activity >

Follow ezSlice

ezSlice Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ezSlice!

Additional Project Details

Registered

2012-04-23