~ubuntu-branches/debian/sid/gource/sid

« back to all changes in this revision

Viewing changes to src/tinyxml/tinystr.h

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2014-04-15 16:30:17 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20140415163017-ucdr2josj1spzrga
Tags: 0.41-1
* New upstream release
* Made VCS URIs canonical
* Changed watch file to look at Github for releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
www.sourceforge.net/projects/tinyxml
3
 
Original file by Yves Berquin.
4
3
 
5
4
This software is provided 'as-is', without any express or implied
6
5
warranty. In no event will the authors be held liable for any
22
21
distribution.
23
22
*/
24
23
 
25
 
/*
26
 
 * THIS FILE WAS ALTERED BY Tyge Lovset, 7. April 2005.
27
 
 *
28
 
 * - completely rewritten. compact, clean, and fast implementation.
29
 
 * - sizeof(TiXmlString) = pointer size (4 bytes on 32-bit systems)
30
 
 * - fixed reserve() to work as per specification.
31
 
 * - fixed buggy compares operator==(), operator<(), and operator>()
32
 
 * - fixed operator+=() to take a const ref argument, following spec.
33
 
 * - added "copy" constructor with length, and most compare operators.
34
 
 * - added swap(), clear(), size(), capacity(), operator+().
35
 
 */
36
24
 
37
25
#ifndef TIXML_USE_STL
38
26
 
106
94
                quit();
107
95
        }
108
96
 
109
 
        // = operator
110
97
        TiXmlString& operator = (const char * copy)
111
98
        {
112
99
                return assign( copy, (size_type)strlen(copy));
113
100
        }
114
101
 
115
 
        // = operator
116
102
        TiXmlString& operator = (const TiXmlString & copy)
117
103
        {
118
104
                return assign(copy.start(), copy.length());