Get the end index of a match.


#include <strpattern.h>
int strpattern_match_end_index(const strpattern_match *match, int *err)


BlackBerry 10.0.0



The match whose end index is returned.


STRPATTERN_EOK if there is no error.


libstrpattern (For the qcc command, use the -l strpattern option to link against this library)


This function returns the end index of a match. The end index represents the offset, from the beginning of the string which was analyzed, to the character immediately following the last character of the match. This character is after the last character of the string if the last character of the match is the last character of the analyzed string. The offset is counted in terms of characters in the analyzed string using Unicode code points. Characters are not reinterpreted in any way. For example, each code point is counted as a character even if it represents a character decoration associated with the preceding character.


The end index of the match (-1 on error).

Last modified: 2014-05-14

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus