Lines Matching refs:subLength
54 const UChar *sub, int32_t subLength) {
58 if(sub==NULL || subLength<-1) {
67 if(length<0 && subLength<0) {
106 if(subLength<0) {
107 subLength=u_strlen(sub);
109 if(subLength==0) {
115 --subLength;
116 subLimit=sub+subLength;
118 if(subLength==0 && !U16_IS_SURROGATE(cs)) {
152 /* subLength was decremented above */
153 if(length<=subLength) {
160 preLimit=limit-subLength;
285 const UChar *sub, int32_t subLength) {
289 if(sub==NULL || subLength<-1) {
306 if(subLength<0) {
307 subLength=u_strlen(sub);
309 if(subLength==0) {
313 /* get sub[subLength-1] to search for it fast */
314 subLimit=sub+subLength;
316 --subLength;
318 if(subLength==0 && !U16_IS_SURROGATE(cs)) {
327 /* subLength was decremented above */
328 if(length<=subLength) {
335 /* the substring must start no later than s+subLength */
336 s+=subLength;