Home | History | Annotate | Download | only in ustring

Lines Matching full:readonly

403 static const UChar readonly[]={
429 // set "one" to contain the 3 UChars from readonly
431 one.setTo(readonly, LENGTHOF(readonly));
444 // * UnicodeString using readonly-alias to a const UChar array
445 // construct a string that aliases a readonly buffer
446 UnicodeString three(FALSE, readonly, LENGTHOF(readonly));
447 printUnicodeString("readonly-alias string: ", three);
451 printUnicodeString("readonly-aliasing string after modification: ", three);
454 printf("readonly buffer[%d] after modifying its string: 0x%lx\n",
455 i, readonly[i]);
457 // setTo() readonly alias
459 // copying the readonly-alias object with fastCopyFrom() (new in ICU 2.4)
460 // will readonly-alias the same buffer
462 printUnicodeString("fastCopyFrom(readonly alias of \"writeable\" array): ", two);
463 printf("verify that a fastCopyFrom(readonly alias) uses the same buffer pointer: %d (should be 1)\n",
467 printf("verify that a regular copy of a readonly alias uses a different buffer pointer: %d (should be 0)\n",