Overview
Comment: | Make return type of -[unicodeString] const. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4d6f7fc529862bf0767c44fe57983fc1 |
User & Date: | js on 2011-10-29 01:36:45 |
Other Links: | manifest | tags |
Context
2011-10-31
| ||
21:18 |
Move placeholder interfaces from headers to implementation files. This way they are not public anymore. check-in: 6bdb2e4b01 user: js tags: trunk | |
2011-10-29
| ||
01:36 | Make return type of -[unicodeString] const. check-in: 4d6f7fc529 user: js tags: trunk | |
00:00 | Make the parameter for +[stringWith{Unicode,UTF16}String:] const. check-in: 49cf155269 user: js tags: trunk | |
Changes
Modified src/OFConstantString.m from [30a97b7678] to [e406c9d41b].
︙ | ︙ | |||
626 627 628 629 630 631 632 | { if (initialized != SIZE_MAX) [self finishInitialization]; return [super doubleValue]; } | | | 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 | { if (initialized != SIZE_MAX) [self finishInitialization]; return [super doubleValue]; } - (const of_unichar_t*)unicodeString { if (initialized != SIZE_MAX) [self finishInitialization]; return [super unicodeString]; } |
︙ | ︙ |
Modified src/OFString.h from [6cbaebe470] to [af13422bcb].
︙ | ︙ | |||
791 792 793 794 795 796 797 | * * The result is valid until the autorelease pool is released. If you want to * use the result outside the scope of the current autorelease pool, you have to * copy it. * * \return The string as an array of Unicode characters */ | | | 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 | * * The result is valid until the autorelease pool is released. If you want to * use the result outside the scope of the current autorelease pool, you have to * copy it. * * \return The string as an array of Unicode characters */ - (const of_unichar_t*)unicodeString; /** * \brief Writes the string into the specified file using UTF-8 encoding. * * \param path The path of the file to write to */ - (void)writeToFile: (OFString*)path; |
︙ | ︙ |
Modified src/OFString.m from [ac74e2bb50] to [7ae1259373].
︙ | ︙ | |||
1867 1868 1869 1870 1871 1872 1873 | *endPointer != '\f') @throw [OFInvalidFormatException exceptionWithClass: isa]; return value; } | | | 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 | *endPointer != '\f') @throw [OFInvalidFormatException exceptionWithClass: isa]; return value; } - (const of_unichar_t*)unicodeString { OFObject *object = [[[OFObject alloc] init] autorelease]; of_unichar_t *ret; size_t i, j; ret = [object allocMemoryForNItems: s->length + 2 ofSize: sizeof(of_unichar_t)]; |
︙ | ︙ |