Note Common::String's behaviour may be undefined with \0 characters.
Also make operator=(char) and String(char) behave the same. svn-id: r50712
This commit is contained in:
parent
0c3cbcbfc5
commit
a3202eab7c
2 changed files with 6 additions and 3 deletions
|
@ -39,6 +39,9 @@ namespace Common {
|
|||
* Instead, small strings are stored 'inside' the string object (i.e. on
|
||||
* the stack, for stack allocated objects), and only for strings exceeding
|
||||
* a certain length do we allocate a buffer on the heap.
|
||||
*
|
||||
* The presence of \0 characters in the string will cause undefined
|
||||
* behaviour in some operations.
|
||||
*/
|
||||
class String {
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue