comparison win32-mingw/include/kj/string.h @ 149:279b18cc7785

Update Win32 capnp builds to v0.6
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 23 May 2017 09:16:54 +0100
parents 38d1c0e7850b
children
comparison
equal deleted inserted replaced
148:b4bfdf10c4b3 149:279b18cc7785
168 inline ArrayPtr<const char> asArray() const; 168 inline ArrayPtr<const char> asArray() const;
169 inline ArrayPtr<byte> asBytes() { return asArray().asBytes(); } 169 inline ArrayPtr<byte> asBytes() { return asArray().asBytes(); }
170 inline ArrayPtr<const byte> asBytes() const { return asArray().asBytes(); } 170 inline ArrayPtr<const byte> asBytes() const { return asArray().asBytes(); }
171 // Result does not include NUL terminator. 171 // Result does not include NUL terminator.
172 172
173 inline Array<char> releaseArray() { return kj::mv(content); }
174 // Disowns the backing array (which includes the NUL terminator) and returns it. The String value
175 // is clobbered (as if moved away).
176
173 inline const char* cStr() const; 177 inline const char* cStr() const;
174 178
175 inline size_t size() const; 179 inline size_t size() const;
176 // Result does not include NUL terminator. 180 // Result does not include NUL terminator.
177 181