/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 …]
|
D | ucharstrieiterator.cpp | 71 str_.append(pos_, length); in Iterator() 90 str_.truncate(length); in reset() 116 str_.truncate(length&0xffff); in next() 124 str_.append(*pos++); in next() 147 if(isFinal || (maxLength_>0 && str_.length()==maxLength_)) { in next() 160 if(maxLength_>0 && str_.length()==maxLength_) { in next() 174 if(maxLength_>0 && str_.length()+length>maxLength_) { in next() 175 str_.append(pos, maxLength_-str_.length()); in next() 178 str_.append(pos, length); in next() 191 stack_->addElement(((length-(length>>1))<<16)|str_.length(), errorCode); in branchNext() [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 | 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 | 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 | 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/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.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()
|
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()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | datapiece.cc | 168 if (str_ == "Infinity") return std::numeric_limits<double>::infinity(); in ToDouble() 169 if (str_ == "-Infinity") return -std::numeric_limits<double>::infinity(); in ToDouble() 170 if (str_ == "NaN") return std::numeric_limits<double>::quiet_NaN(); in ToDouble() 181 if (str_ == "Infinity") return std::numeric_limits<float>::infinity(); in ToFloat() 182 if (str_ == "-Infinity") return -std::numeric_limits<float>::infinity(); in ToFloat() 183 if (str_ == "NaN") return std::numeric_limits<float>::quiet_NaN(); in ToFloat() 206 return str_.ToString(); in ToString() 209 Base64Escape(str_, &base64); in ToString() 235 return StrCat("\"", str_.ToString(), "\""); in ValueAsStringOrDefault() 238 WebSafeBase64Escape(str_, &base64); 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/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/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/ |
D | put.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()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/ |
D | long.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 | unsigned_short.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 | long_double.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 | unsigned_long_long.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 | unsigned_long.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 | double.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 | short.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 | unsigned_int.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 | float.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 | long_long.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()
|