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:
Willem Jan Palenstijn 2010-07-05 21:29:52 +00:00
parent 0c3cbcbfc5
commit a3202eab7c
2 changed files with 6 additions and 3 deletions

View file

@ -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: