2

根据手册,gdb中没有实现字符串连接。但是我需要它,那么有没有办法实现这一点,也许使用数组函数?

4

2 回答 2

1

我没有 gdb 的副本来尝试这个,但也许文档的 Ada 部分后面的这一行会对你有所帮助?

与其使用连接和符号字符名称将特殊字符引入字符串,不如使用一种特殊的括号表示法,它也用于打印字符串。["""]'形式的字符序列["XX"]' within a string or character literal denotes the (single) character whose numeric encoding is XX in hexadecimal. The sequence of characters也表示字符串中的单引号。例如,"One line.["0a"]Next line.["0a"]"

每个句点后包含一个 ASCII 换行符 (Ada.Characters.Latin_1.LF)。

于 2009-03-18T18:09:58.150 回答
-1

对于 Objective-C:

[@"asd" stringByAppendingString:@"zxc"]


[@"ID: " stringByAppendingString:(NSString*) [aTaskDict valueForKey:@"ID"]]
于 2009-03-03T18:59:35.937 回答