split_step - tokenization make simple in folly::Range
authorMarcelo Juchem <marcelo@fb.com>
Mon, 27 Jan 2014 23:45:38 +0000 (15:45 -0800)
committerSara Golemon <sgolemon@fb.com>
Thu, 6 Feb 2014 19:50:13 +0000 (11:50 -0800)
commitd6ed81ca6f520767f841780f779bfb5922455662
treebcaffd8c8a2e563217b99c8a094ec327fb95b4d5
parent8cb35a9efa534779a0c469f00ddb65961a657278
split_step - tokenization make simple in folly::Range

Summary: this is a simple method that allows a folly::Range `[b, e)` to be split on a character at position `i` (where b <= i < e) in an incremental manner.
@override-unit-failures

Test Plan: unit tests added

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1145631
folly/Range.h
folly/test/RangeTest.cpp