/external/pigweed/pw_kvs/public/pw_kvs/ |
D | key.h | 34 constexpr Key() : str_{nullptr}, length_{0} {} in Key() 37 : str_{str}, in Key() 39 constexpr Key(const char* str, size_t len) : str_{str}, length_{len} {} in Key() 40 Key(const std::string& str) : str_{str.data()}, length_{str.length()} {} in Key() 44 : str_{str.data()}, length_{str.length()} {} in Key() 45 operator std::string_view() { return std::string_view{str_, length_}; } in string_view() 54 constexpr const char& operator[](size_t pos) const { return str_[pos]; } 55 constexpr const char& at(size_t pos) const { return str_[pos]; } in at() 56 constexpr const char& front() const { return str_[0]; } in front() 57 constexpr const char& back() const { return str_[length_ - 1]; } in back() [all …]
|
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/ |
D | streambuf.pass.cpp | 25 std::basic_string<CharT> str_; member in testbuf 31 : str_(str) in testbuf() 33 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 34 const_cast<CharT*>(str_.data()), in testbuf() 35 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 48 std::size_t n = str_.size(); in overflow() 49 str_.push_back(static_cast<CharT>(ch)); in overflow() 50 str_.resize(str_.capacity()); in overflow() 51 base::setp(const_cast<CharT*>(str_.data()), in overflow() 52 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ |
D | streambuf.pass.cpp | 25 std::basic_string<CharT> str_; member in testbuf 31 : str_(str) in testbuf() 33 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 34 const_cast<CharT*>(str_.data()), in testbuf() 35 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 48 int n = static_cast<int>(str_.size()); in overflow() 49 str_.push_back(static_cast<CharT>(ch)); in overflow() 50 str_.resize(str_.capacity()); in overflow() 51 base::setp(const_cast<CharT*>(str_.data()), in overflow() 52 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | ostream.pass.cpp | 26 std::basic_string<CharT> str_; member in testbuf 42 int n = static_cast<int>(str_.size()); in overflow() 43 str_.push_back(static_cast<CharT>(ch)); in overflow() 44 str_.resize(str_.capacity()); in overflow() 45 base::setp(const_cast<CharT*>(str_.data()), in overflow() 46 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | ios_base.pass.cpp | 25 std::basic_string<CharT> str_; member in testbuf 41 int n = static_cast<int>(str_.size()); in overflow() 42 str_.push_back(static_cast<CharT>(ch)); in overflow() 43 str_.resize(str_.capacity()); in overflow() 44 base::setp(const_cast<CharT*>(str_.data()), in overflow() 45 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | basic_ios.pass.cpp | 26 std::basic_string<CharT> str_; member in testbuf 42 int n = static_cast<int>(str_.size()); in overflow() 43 str_.push_back(static_cast<CharT>(ch)); in overflow() 44 str_.resize(str_.capacity()); in overflow() 45 base::setp(const_cast<CharT*>(str_.data()), in overflow() 46 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/icu/icu4c/source/common/ |
D | bytestrieiterator.cpp | 30 str_(NULL), maxLength_(maxStringLength), value_(0), stack_(NULL) { in Iterator() 40 str_=new CharString(); in Iterator() 42 if(U_SUCCESS(errorCode) && (str_==NULL || stack_==NULL)) { in Iterator() 52 str_(NULL), maxLength_(maxStringLength), value_(0), stack_(NULL) { in Iterator() 56 str_=new CharString(); in Iterator() 61 if(str_==NULL || stack_==NULL) { in Iterator() 72 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator() 79 delete str_; in ~Iterator() 91 str_->truncate(length); in reset() 117 str_->truncate(length&0xffff); in next() [all …]
|
/external/webrtc/rtc_base/strings/ |
D | string_builder.h | 92 explicit StringBuilder(absl::string_view s) : str_(s) {} in StringBuilder() 99 str_.append(str.data(), str.length()); 106 str_ += rtc::ToString(i); 111 str_ += rtc::ToString(i); 116 str_ += rtc::ToString(i); 121 str_ += rtc::ToString(i); 126 str_ += rtc::ToString(i); 131 str_ += rtc::ToString(i); 136 str_ += rtc::ToString(f); 141 str_ += rtc::ToString(f); [all …]
|
/external/llvm-project/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ |
D | streambuf.pass.cpp | 26 std::basic_string<CharT> str_; member in testbuf 32 : str_(str) in testbuf() 34 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 35 const_cast<CharT*>(str_.data()), in testbuf() 36 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 49 int n = static_cast<int>(str_.size()); in overflow() 50 str_.push_back(static_cast<CharT>(ch)); in overflow() 51 str_.resize(str_.capacity()); in overflow() 52 base::setp(const_cast<CharT*>(str_.data()), in overflow() 53 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | ostream.pass.cpp | 27 std::basic_string<CharT> str_; member in testbuf 43 int n = static_cast<int>(str_.size()); in overflow() 44 str_.push_back(static_cast<CharT>(ch)); in overflow() 45 str_.resize(str_.capacity()); in overflow() 46 base::setp(const_cast<CharT*>(str_.data()), in overflow() 47 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | ios_base.pass.cpp | 26 std::basic_string<CharT> str_; member in testbuf 42 int n = static_cast<int>(str_.size()); in overflow() 43 str_.push_back(static_cast<CharT>(ch)); in overflow() 44 str_.resize(str_.capacity()); in overflow() 45 base::setp(const_cast<CharT*>(str_.data()), in overflow() 46 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | basic_ios.pass.cpp | 27 std::basic_string<CharT> str_; member in testbuf 43 int n = static_cast<int>(str_.size()); in overflow() 44 str_.push_back(static_cast<CharT>(ch)); in overflow() 45 str_.resize(str_.capacity()); in overflow() 46 base::setp(const_cast<CharT*>(str_.data()), in overflow() 47 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/strace/ |
D | xstring.h | 51 #define xsnprintf(str_, size_, fmt_, ...) \ argument 52 xsnprintf_((str_), (size_), __func__, #fmt_ ", " #__VA_ARGS__, \ 63 #define xsprintf(str_, fmt_, ...) \ argument 64 xsnprintf((str_), sizeof(str_) + MUST_BE_ARRAY(str_), (fmt_), \ 99 #define xappendstr(str_, pos_, fmt_, ...) \ argument 100 (xsnprintf((pos_), sizeof(str_) + MUST_BE_ARRAY(str_) - \ 101 get_pos_diff_((str_), sizeof(str_), (pos_), __func__, \ 102 "xappendstr(" #str_ ", " #pos_ ", " #fmt_ ", " \
|
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/ |
D | get_streambuf_chart.pass.cpp | 23 std::basic_string<CharT> str_; member in testbuf 29 : str_(str) in testbuf() 31 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 32 const_cast<CharT*>(str_.data()), in testbuf() 33 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 46 int n = static_cast<int>(str_.size()); in overflow() 47 str_.push_back(static_cast<CharT>(ch)); in overflow() 48 str_.resize(str_.capacity()); in overflow() 49 base::setp(const_cast<CharT*>(str_.data()), in overflow() 50 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | get_streambuf.pass.cpp | 22 std::basic_string<CharT> str_; member in testbuf 28 : str_(str) in testbuf() 30 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 31 const_cast<CharT*>(str_.data()), in testbuf() 32 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 45 int n = static_cast<int>(str_.size()); in overflow() 46 str_.push_back(static_cast<CharT>(ch)); in overflow() 47 str_.resize(str_.capacity()); in overflow() 48 base::setp(const_cast<CharT*>(str_.data()), in overflow() 49 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/ |
D | sync.pass.cpp | 27 string_type str_; member 32 : str_(str) in testbuf() 34 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 35 const_cast<CharT*>(str_.data()), in testbuf() 36 const_cast<CharT*>(str_.data()) + str_.size()); in testbuf() 61 string_type str_; member 66 : str_(str) in throwing_testbuf() 68 base::setg(const_cast<CharT*>(str_.data()), in throwing_testbuf() 69 const_cast<CharT*>(str_.data()), in throwing_testbuf() 70 const_cast<CharT*>(str_.data()) + str_.size()); in throwing_testbuf()
|
D | get_streambuf.pass.cpp | 30 std::basic_string<CharT> str_; member in testbuf 36 : str_(str) in testbuf() 38 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 39 const_cast<CharT*>(str_.data()), in testbuf() 40 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 53 int n = static_cast<int>(str_.size()); in overflow() 54 str_.push_back(static_cast<CharT>(ch)); in overflow() 55 str_.resize(str_.capacity()); in overflow() 56 base::setp(const_cast<CharT*>(str_.data()), in overflow() 57 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | get_streambuf_chart.pass.cpp | 30 std::basic_string<CharT> str_; member in testbuf 36 : str_(str) in testbuf() 38 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 39 const_cast<CharT*>(str_.data()), in testbuf() 40 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 53 int n = static_cast<int>(str_.size()); in overflow() 54 str_.push_back(static_cast<CharT>(ch)); in overflow() 55 str_.resize(str_.capacity()); in overflow() 56 base::setp(const_cast<CharT*>(str_.data()), in overflow() 57 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | datapiece.cc | 174 if (str_ == "Infinity") return std::numeric_limits<double>::infinity(); in ToDouble() 175 if (str_ == "-Infinity") return -std::numeric_limits<double>::infinity(); in ToDouble() 176 if (str_ == "NaN") return std::numeric_limits<double>::quiet_NaN(); in ToDouble() 181 return InvalidArgument(StrCat("\"", str_, "\"")); in ToDouble() 194 if (str_ == "Infinity") return std::numeric_limits<float>::infinity(); in ToFloat() 195 if (str_ == "-Infinity") return -std::numeric_limits<float>::infinity(); in ToFloat() 196 if (str_ == "NaN") return std::numeric_limits<float>::quiet_NaN(); in ToFloat() 219 return std::string(str_); in ToString() 222 Base64Escape(str_, &base64); in ToString() 249 return StrCat("\"", str_.ToString(), "\""); in ValueAsStringOrDefault() [all …]
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.rvalue/ |
D | CharT_pointer.pass.cpp | 30 std::basic_string<CharT> str_; member in testbuf 46 int n = static_cast<int>(str_.size()); in overflow() 47 str_.push_back(static_cast<CharT>(ch)); in overflow() 48 str_.resize(str_.capacity()); in overflow() 49 base::setp(const_cast<CharT*>(str_.data()), in overflow() 50 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/ |
D | streambuf.pass.cpp | 33 std::basic_string<CharT> str_; member in testbuf 39 : str_(str) in testbuf() 41 base::setg(const_cast<CharT*>(str_.data()), in testbuf() 42 const_cast<CharT*>(str_.data()), in testbuf() 43 const_cast<CharT*>(str_.data() + str_.size())); in testbuf() 56 std::size_t n = str_.size(); in overflow() 57 str_.push_back(static_cast<CharT>(ch)); in overflow() 58 str_.resize(str_.capacity()); in overflow() 59 base::setp(const_cast<CharT*>(str_.data()), in overflow() 60 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/ |
D | endl.pass.cpp | 28 std::basic_string<CharT> str_; member in testbuf 44 int n = static_cast<int>(str_.size()); in overflow() 45 str_.push_back(static_cast<CharT>(ch)); in overflow() 46 str_.resize(str_.capacity()); in overflow() 47 base::setp(const_cast<CharT*>(str_.data()), in overflow() 48 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | ends.pass.cpp | 26 std::basic_string<CharT> str_; member in testbuf 42 int n = static_cast<int>(str_.size()); in overflow() 43 str_.push_back(static_cast<CharT>(ch)); in overflow() 44 str_.resize(str_.capacity()); in overflow() 45 base::setp(const_cast<CharT*>(str_.data()), in overflow() 46 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
/external/llvm-project/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/ |
D | ends.pass.cpp | 27 std::basic_string<CharT> str_; member in testbuf 43 int n = static_cast<int>(str_.size()); in overflow() 44 str_.push_back(static_cast<CharT>(ch)); in overflow() 45 str_.resize(str_.capacity()); in overflow() 46 base::setp(const_cast<CharT*>(str_.data()), in overflow() 47 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|
D | endl.pass.cpp | 29 std::basic_string<CharT> str_; member in testbuf 45 int n = static_cast<int>(str_.size()); in overflow() 46 str_.push_back(static_cast<CharT>(ch)); in overflow() 47 str_.resize(str_.capacity()); in overflow() 48 base::setp(const_cast<CharT*>(str_.data()), in overflow() 49 const_cast<CharT*>(str_.data() + str_.size())); in overflow()
|