Home
last modified time | relevance | path

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

12345

/external/icu/icu4c/source/common/
Dbytestrieiterator.cpp28 str_(NULL), maxLength_(maxStringLength), value_(0), stack_(NULL) { in Iterator()
38 str_=new CharString(); in Iterator()
40 if(U_SUCCESS(errorCode) && (str_==NULL || stack_==NULL)) { in Iterator()
50 str_(NULL), maxLength_(maxStringLength), value_(0), stack_(NULL) { in Iterator()
54 str_=new CharString(); in Iterator()
59 if(str_==NULL || stack_==NULL) { in Iterator()
70 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator()
77 delete str_; in ~Iterator()
89 str_->truncate(length); in reset()
115 str_->truncate(length&0xffff); in next()
[all …]
Ducharstrieiterator.cpp69 str_.append(pos_, length); in Iterator()
88 str_.truncate(length); in reset()
114 str_.truncate(length&0xffff); in next()
122 str_.append(*pos++); in next()
145 if(isFinal || (maxLength_>0 && str_.length()==maxLength_)) { in next()
158 if(maxLength_>0 && str_.length()==maxLength_) { in next()
172 if(maxLength_>0 && str_.length()+length>maxLength_) { in next()
173 str_.append(pos, maxLength_-str_.length()); in next()
176 str_.append(pos, length); in next()
189 stack_->addElement(((length-(length>>1))<<16)|str_.length(), errorCode); in branchNext()
[all …]
/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 = str_.size(); in overflow()
49 str_.push_back(__c); 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()
Dostream.pass.cpp26 std::basic_string<CharT> str_; member in testbuf
42 int n = str_.size(); in overflow()
43 str_.push_back(__c); 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()
Dios_base.pass.cpp25 std::basic_string<CharT> str_; member in testbuf
41 int n = str_.size(); in overflow()
42 str_.push_back(__c); 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()
Dbasic_ios.pass.cpp26 std::basic_string<CharT> str_; member in testbuf
42 int n = str_.size(); in overflow()
43 str_.push_back(__c); 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/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 int n = str_.size(); in overflow()
49 str_.push_back(__c); 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/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 = str_.size(); in overflow()
46 str_.push_back(__c); 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 = str_.size(); in overflow()
47 str_.push_back(__c); 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.rvalue/
DCharT_pointer.pass.cpp29 std::basic_string<CharT> str_; member in testbuf
45 int n = str_.size(); in overflow()
46 str_.push_back(__c); 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/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 = str_.size(); in overflow()
45 str_.push_back(__c); 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 = str_.size(); in overflow()
43 str_.push_back(__c); 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/include/
D__refstring26 const char* str_;
77 return str_ != get_gcc_empty_string_storage();
96 str_ = data;
99 __libcpp_refstring(const __libcpp_refstring& s) _NOEXCEPT : str_(s.str_)
102 __sync_add_and_fetch(&rep_from_data(str_)->count, 1);
108 struct _Rep_base *old_rep = rep_from_data(str_);
109 str_ = s.str_;
111 __sync_add_and_fetch(&rep_from_data(str_)->count, 1);
126 _Rep_base* rep = rep_from_data(str_);
134 const char* c_str() const _NOEXCEPT {return str_;}
/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 = str_.size(); in overflow()
42 str_.push_back(__c); 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()
Dwrite.pass.cpp25 std::basic_string<CharT> str_; member in testbuf
41 int n = str_.size(); in overflow()
42 str_.push_back(__c); 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/
Dunsigned_short.pass.cpp25 std::basic_string<CharT> str_; member in testbuf
41 int n = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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 = str_.size(); in overflow()
42 str_.push_back(__c); 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()
Dint.pass.cpp25 std::basic_string<CharT> str_; member in testbuf
41 int n = str_.size(); in overflow()
42 str_.push_back(__c); 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.pass.cpp25 std::basic_string<CharT> str_; member in testbuf
41 int n = str_.size(); in overflow()
42 str_.push_back(__c); 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()

12345