Lines Matching defs:string
72 * Get the ordering priority of the next character in the string.
74 * occured or if the end of string has been reached
101 // and we only compare the string not the contents of the normalization
103 int thislength = (int)(m_data_->iteratordata_.endp - m_data_->iteratordata_.string);
104 int thatlength = (int)(that.m_data_->iteratordata_.endp - that.m_data_->iteratordata_.string);
110 if (uprv_memcmp(m_data_->iteratordata_.string,
111 that.m_data_->iteratordata_.string,
143 * Get the ordering priority of the previous collation element in the string.
146 * occured or if the start of string has been reached.
154 * Resets the cursor to the beginning of the string.
168 * Sets the source to the new source string.
178 UChar *string = NULL;
179 if (m_data_->isWritable && m_data_->iteratordata_.string != NULL) {
180 uprv_free((UChar *)m_data_->iteratordata_.string);
184 string = (UChar *)uprv_malloc(U_SIZEOF_UCHAR * length);
186 if (string == NULL) {
190 u_memcpy(string, source.getBuffer(), length);
193 string = (UChar *)uprv_malloc(U_SIZEOF_UCHAR);
195 if (string == NULL) {
199 *string = 0;
203 uprv_init_collIterate(m_data_->iteratordata_.coll, string, length,
237 string gets removed
239 UnicodeString string;
240 source.getText(string);
241 u_memcpy(buffer, string.getBuffer(), length);
244 if (m_data_->isWritable && m_data_->iteratordata_.string != NULL) {
245 uprv_free((UChar *)m_data_->iteratordata_.string);
286 UChar *string = NULL;
289 string = (UChar *)uprv_malloc(U_SIZEOF_UCHAR * length);
291 if (string == NULL) {
297 string gets removed
299 u_memcpy(string, sourceText.getBuffer(), length);
302 string = (UChar *)uprv_malloc(U_SIZEOF_UCHAR);
304 if (string == NULL) {
308 *string = 0;
310 m_data_ = ucol_openElements(order->ucollator, string, length, &status);
362 string gets removed
364 UnicodeString string(buffer, length, length);
365 ((CharacterIterator &)sourceText).getText(string);
366 const UChar *temp = string.getBuffer();
402 length = (int)(othercoliter->endp - othercoliter->string);
407 /* create a duplicate of string */
409 coliter->string = (UChar *)uprv_malloc(length * U_SIZEOF_UCHAR);
410 if(coliter->string != NULL) {
411 uprv_memcpy((UChar *)coliter->string, othercoliter->string,
418 coliter->string = NULL;
421 /* start and end of string */
422 coliter->endp = coliter->string == NULL ? NULL : coliter->string + length;
432 if (othercoliter->pos >= othercoliter->string &&
435 U_ASSERT(coliter->string != NULL);
436 coliter->pos = coliter->string +
437 (othercoliter->pos - othercoliter->string);
467 U_ASSERT(coliter->string != NULL);
468 coliter->fcdPosition = coliter->string +
470 - othercoliter->string);