Overview
Comment: | Add -[OFString stringByAppendingFormat:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
da23dca0084a62eaac34d876a70ce751 |
User & Date: | js on 2012-11-11 12:12:50 |
Other Links: | manifest | tags |
Context
2012-11-12
| ||
11:24 | Check more arguments for nil. check-in: f5c4220251 user: js tags: trunk | |
2012-11-11
| ||
12:12 | Add -[OFString stringByAppendingFormat:]. check-in: da23dca008 user: js tags: trunk | |
11:51 | Add two more OF_SENTINEL. check-in: ed3fd5525e user: js tags: trunk | |
Changes
Modified src/OFString.h from [51a8cd8c83] to [2e05b802ef].
︙ | ︙ | |||
665 666 667 668 669 670 671 672 673 674 675 676 677 678 | * @brief Creates a new string by appending another string. * * @param string The string to append * @return A new, autoreleased OFString with the specified string appended */ - (OFString*)stringByAppendingString: (OFString*)string; /*! * @brief Creates a new string by appending a path component. * * @param component The path component to append * @return A new, autoreleased OFString with the path component appended */ - (OFString*)stringByAppendingPathComponent: (OFString*)component; | > > > > > > > > | 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 | * @brief Creates a new string by appending another string. * * @param string The string to append * @return A new, autoreleased OFString with the specified string appended */ - (OFString*)stringByAppendingString: (OFString*)string; /*! * @brief Creates a new string by appending the specified format. * * @param format A format string which generates the string to append * @return A new, autoreleased OFString with the specified format appended */ - (OFString*)stringByAppendingFormat: (OFConstantString*)format, ...; /*! * @brief Creates a new string by appending a path component. * * @param component The path component to append * @return A new, autoreleased OFString with the path component appended */ - (OFString*)stringByAppendingPathComponent: (OFString*)component; |
︙ | ︙ |
Modified src/OFString.m from [38b0945b74] to [f8021112b9].
︙ | ︙ | |||
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 | - (OFString*)stringByAppendingString: (OFString*)string { OFMutableString *new; new = [OFMutableString stringWithString: self]; [new appendString: string]; [new makeImmutable]; return new; } - (OFString*)stringByAppendingPathComponent: (OFString*)component | > > > > > > > > > > > > > > > > > | 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 | - (OFString*)stringByAppendingString: (OFString*)string { OFMutableString *new; new = [OFMutableString stringWithString: self]; [new appendString: string]; [new makeImmutable]; return new; } - (OFString*)stringByAppendingFormat: (OFConstantString*)format, ... { OFMutableString *new; va_list arguments; new = [OFMutableString stringWithString: self]; va_start(arguments, format); [new appendFormat: format arguments: arguments]; va_end(arguments); [new makeImmutable]; return new; } - (OFString*)stringByAppendingPathComponent: (OFString*)component |
︙ | ︙ |