Changeset 1272 in webkit for trunk/JavaScriptCore/kjs/ustring.h
- Timestamp:
- Jun 4, 2002, 3:33:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.h
r1024 r1272 57 57 */ 58 58 struct UChar { 59 /** 60 * Construct a character with value 0. 61 */ 59 #ifdef APPLE_CHANGES 60 /** 61 * Construct a character with uninitialized value. 62 */ 63 #else 64 /** 65 * Construct a character with value 0. 66 */ 67 #endif 62 68 UChar(); 63 69 /** … … 108 114 }; 109 115 116 #ifdef APPLE_CHANGES 110 117 inline UChar::UChar() : uc(0) { } 118 #else 119 inline UChar::UChar() { } 120 #endif 111 121 inline UChar::UChar(unsigned char h , unsigned char l) : uc(h << 8 | l) { } 112 122 inline UChar::UChar(unsigned short u) : uc(u) { } … … 210 220 UChar *dat; 211 221 int len; 222 #ifdef APPLE_CHANGES 223 int capacity; 224 #endif 212 225 int rc; 213 226 static Rep null; … … 232 245 */ 233 246 UString(const UChar *c, int length); 247 #ifdef APPLE_CHANGES 248 /** 249 * If copy is false the string data will be adopted. 250 * That means that the data will NOT be copied and the pointer will 251 * be deleted when the UString object is modified or destroyed. 252 * Behaviour defaults to a deep copy if copy is true. 253 */ 254 #else 234 255 /** 235 256 * If copy is false a shallow copy of the string will be created. That … … 238 259 * Behaviour defaults to a deep copy if copy is true. 239 260 */ 261 #endif 240 262 UString(UChar *c, int length, bool copy); 241 263 /**
Note:
See TracChangeset
for help on using the changeset viewer.