Differences From Artifact [bf385a3e5c]:
- File src/OFString.h — part of check-in [a51b3cb390] at 2011-10-31 22:02:09 on branch trunk — Add -[UTF16String] to OFString. (user: js, size: 24430) [annotate] [blame] [check-ins using]
To Artifact [8719bc5cf6]:
- File
src/OFString.h
— part of check-in
[301ee63212]
at
2011-11-20 18:41:25
on branch trunk
— Make OFString a class cluster.
It is a class cluster now, but there is still much to improve. (user: js, size: 24126) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
70 71 72 73 74 75 76 | * allowed to access the ivars directly, as these might be still uninitialized * for a constant string and get initialized on the first message! Therefore, * you should use the corresponding methods to get the ivars, which ensures the * constant string is initialized. */ @interface OFString: OFObject <OFCopying, OFMutableCopying, OFComparing, OFSerialization> | < < < < < < < < < < < < < < < < < < < < < < < | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | * allowed to access the ivars directly, as these might be still uninitialized * for a constant string and get initialized on the first message! Therefore, * you should use the corresponding methods to get the ivars, which ensures the * constant string is initialized. */ @interface OFString: OFObject <OFCopying, OFMutableCopying, OFComparing, OFSerialization> #ifdef OF_HAVE_PROPERTIES @property (readonly) size_t length; #endif /** * \brief Creates a new OFString. * |
︙ | ︙ | |||
590 591 592 593 594 595 596 597 598 599 600 601 602 603 | * \brief Returns the Unicode character at the specified index. * * \param index The index of the Unicode character to return * \return The Unicode character at the specified index */ - (of_unichar_t)characterAtIndex: (size_t)index; /** * \brief Returns the index of the first occurrence of the string. * * \param string The string to search * \return The index of the first occurrence of the string or OF_INVALID_INDEX * if it was not found */ | > > > > > > > > > > | 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 | * \brief Returns the Unicode character at the specified index. * * \param index The index of the Unicode character to return * \return The Unicode character at the specified index */ - (of_unichar_t)characterAtIndex: (size_t)index; /** * \brief Copies the Unicode characters in the specified range to the specified * buffer. * * \param buffer The buffer to store the Unicode characters * \param range The range of the Unicode characters to copy */ - (void)getCharacters: (of_unichar_t*)buffer inRange: (of_range_t)range; /** * \brief Returns the index of the first occurrence of the string. * * \param string The string to search * \return The index of the first occurrence of the string or OF_INVALID_INDEX * if it was not found */ |
︙ | ︙ |