Differences From Artifact [958573e473]:
- File src/OFString_UTF8.h — part of check-in [a0d967e8dd] at 2012-01-24 12:01:50 on branch trunk — Cache hashes of strings. (user: js, size: 782) [annotate] [blame] [check-ins using]
To Artifact [716218f422]:
- File
src/OFString_UTF8.h
— part of check-in
[03a7cd6427]
at
2012-03-23 12:41:02
on branch trunk
— Remove hack not necessary anymore.
It became obsolete with the last buildsys update. (user: js, size: 1149) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | */ #import "OFString.h" @interface OFString_UTF8: OFString { @public struct of_string_utf8_ivars { char *cString; size_t cStringLength; BOOL UTF8; size_t length; BOOL hashed; uint32_t hash; } *restrict s; } @end | > > > > > > > > > > > > | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | */ #import "OFString.h" @interface OFString_UTF8: OFString { @public /** * A pointer to the actual data. * * Since constant strings don't have s_store, they have to malloc it on * the first access. Strings created at runtime just set the pointer to * &s_store. */ struct of_string_utf8_ivars { char *cString; size_t cStringLength; BOOL UTF8; size_t length; BOOL hashed; uint32_t hash; } *restrict s; struct of_string_utf8_ivars s_store; } - _initWithUTF8String: (const char*)UTF8String length: (size_t)UTF8StringLength storage: (char*)storage; @end |