Re: [lucy-dev] Str_Find return type

2015-10-24 Thread Nick Wellnhofer
On 22/10/2015 23:21, Marvin Humphrey wrote: You're absolutely right, avoiding an index which counts code points is consistent with our iterator-centric model for string processing. Good insight, and nice API proposal! I'm also tempted to remove Str_Code_Point_At and make string iterators the

Re: [lucy-dev] Str_Find return type

2015-10-22 Thread Marvin Humphrey
On Thu, Oct 22, 2015 at 8:06 AM, Nick Wellnhofer wrote: > On 18/10/2015 14:01, Nick Wellnhofer wrote: - Make `Find` return a size_t. Requires special value for "not found". >>> >>> Hmm, that's a toughie. If the sentinel is SIZE_MAX, that might not fit in >>> all host numeric types. >

[lucy-dev] Str_Find return type

2015-10-22 Thread Nick Wellnhofer
On 18/10/2015 14:01, Nick Wellnhofer wrote: - Make `Find` return a size_t. Requires special value for "not found". Hmm, that's a toughie. If the sentinel is SIZE_MAX, that might not fit in all host numeric types. Good point. The problem is not so much the byte size of the return type but