Home
last modified time | relevance | path

Searched refs:str_ (Results 1 – 25 of 127) sorted by relevance

123456

/external/icu/icu4c/source/common/
Dbytestrieiterator.cpp30 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 …]
Ducharstrieiterator.cpp71 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/
Dstreambuf.pass.cpp25 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/
Dstreambuf.pass.cpp25 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()
Dios_base.pass.cpp25 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()
Dostream.pass.cpp26 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()
Dbasic_ios.pass.cpp26 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/
Dxstring.h51 #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/
Dget_streambuf.pass.cpp22 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()
Dget_streambuf_chart.pass.cpp23 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/
Ddatapiece.cc168 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/
DCharT_pointer.pass.cpp30 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/
Dendl.pass.cpp28 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()
Dends.pass.cpp26 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/
Dput.pass.cpp25 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/
Dlong.pass.cpp25 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()
Dunsigned_short.pass.cpp25 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()
Dlong_double.pass.cpp25 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()
Dunsigned_long_long.pass.cpp25 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()
Dunsigned_long.pass.cpp25 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()
Ddouble.pass.cpp25 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()
Dshort.pass.cpp25 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()
Dunsigned_int.pass.cpp25 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()
Dfloat.pass.cpp25 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()
Dlong_long.pass.cpp25 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()

123456