Lines Matching refs:sLength
73 CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) { in append() argument
77 if(sLength<-1 || (s==NULL && sLength!=0)) { in append()
81 if(sLength<0) { in append()
82 sLength= static_cast<int32_t>(uprv_strlen(s)); in append()
84 if(sLength>0) { in append()
87 if(sLength>=(buffer.getCapacity()-len)) { in append()
91 buffer[len+=sLength]=0; in append()
94 sLength>=(buffer.getCapacity()-len) in append()
98 return append(CharString(s, sLength, errorCode), errorCode); in append()
99 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) { in append()
100 uprv_memcpy(buffer.getAlias()+len, s, sLength); in append()
101 buffer[len+=sLength]=0; in append()