Lines Matching refs:StringWrapper
21 class StringWrapper {
32 StringWrapper() : buffer_(nullptr), capacity_(0), end_(0) {}
34 StringWrapper(pointer buffer, size_type capacity, size_type size)
39 StringWrapper(pointer buffer, size_type size)
40 : StringWrapper(buffer, size, size) {}
42 explicit StringWrapper(pointer buffer)
43 : StringWrapper(buffer, std::strlen(buffer)) {}
45 StringWrapper(const StringWrapper& other) { *this = other; }
47 StringWrapper(StringWrapper&& other) { *this = std::move(other); }
49 StringWrapper& operator=(const StringWrapper& other) {
61 StringWrapper& operator=(StringWrapper&& other) {
111 StringWrapper<const T> WrapString(const std::basic_string<T, Any...>& s) {
112 return StringWrapper<const T>(s.c_str(), s.length());
116 StringWrapper<T> WrapString(T* s, SizeType size) {
117 return StringWrapper<T>(s, size);
121 StringWrapper<T> WrapString(T* s) {
122 return StringWrapper<T>(s);