Lines Matching refs:sLength
112 CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) { in append() argument
116 if(sLength<-1 || (s==NULL && sLength!=0)) { in append()
120 if(sLength<0) { in append()
121 sLength= static_cast<int32_t>(uprv_strlen(s)); in append()
123 if(sLength>0) { in append()
126 if(sLength>=(buffer.getCapacity()-len)) { in append()
130 buffer[len+=sLength]=0; in append()
133 sLength>=(buffer.getCapacity()-len) in append()
137 return append(CharString(s, sLength, errorCode), errorCode); in append()
138 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) { in append()
139 uprv_memcpy(buffer.getAlias()+len, s, sLength); in append()
140 buffer[len+=sLength]=0; in append()