Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 44) sorted by relevance

12

/build/kati/
Dfileutil_bench.cc22 std::string shell = "/bin/bash"; in BM_RunCommand()
23 std::string shellflag = "-c"; in BM_RunCommand()
24 std::string cmd = "echo $((1+3))"; in BM_RunCommand()
26 std::string result; in BM_RunCommand()
33 std::string shell = "/bin/bash "; in BM_RunCommand_ComplexShell()
34 std::string shellflag = "-c"; in BM_RunCommand_ComplexShell()
35 std::string cmd = "echo $((1+3))"; in BM_RunCommand_ComplexShell()
37 std::string result; in BM_RunCommand_ComplexShell()
Dstring_piece.cc47 void StringPiece::CopyToString(std::string* target) const { in CopyToString()
51 void StringPiece::AppendToString(std::string* target) const { in AppendToString()
57 size_type ret = std::min(length_ - pos, n); in copy()
66 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
76 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
85 return std::min(length_, pos); in rfind()
87 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind()
88 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
96 for (size_type i = std::min(pos, length_ - 1); ; --i) { in rfind()
185 for (size_type i = std::min(pos, length_ - 1); ; --i) { in find_last_of()
[all …]
Dstring_piece.h55 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
56 typedef std::reverse_iterator<iterator> reverse_iterator;
67 StringPiece(const std::string& str) in StringPiece()
69 StringPiece(const std::string&& str) in StringPiece()
121 std::string as_string() const { in as_string()
123 return std::string(!empty() ? data() : "", size()); in as_string()
126 void CopyToString(std::string* target) const;
127 void AppendToString(std::string* target) const;
212 namespace std {
Daffinity.cc33 std::default_random_engine generator(getpid()); in SetAffinityForSingleThread()
34 std::uniform_int_distribution<int> distribution(0,g_flags.num_cpus-1); in SetAffinityForSingleThread()
Dsymtab.h23 using namespace std; variable
87 namespace std {
DMakefile.ckati85 $(KATI_LD) -std=c++11 $(KATI_CXXFLAGS) -o $@ $^ $(KATI_LIBS)
90 $(KATI_CXX) -c -std=c++11 $(KATI_CXXFLAGS) -o $@ $<
95 $(KATI_CXX) -c -std=c++11 $(KATI_CXXFLAGS) -o $@ $<
Dstringprintf.h20 using namespace std; variable
Dregen.h20 using namespace std; variable
Dexec.h20 using namespace std; variable
Dthread_pool.h20 using namespace std; variable
Dstrutil_bench.cc25 using namespace std;
Dfile_cache.h22 using namespace std; variable
Dninja.h25 using namespace std; variable
Dstring_piece_test.cc23 using namespace std;
Dio.h24 using namespace std; variable
Dfile.h23 using namespace std; variable
Dparser.h24 using namespace std; variable
Dflags.h24 using namespace std; variable
Dcommand.h22 using namespace std; variable
Dfunc.h24 using namespace std; variable
/build/make/tools/makeparallel/
Dmakeparallel.cpp61 static std::vector<std::string> ReadMakeflags() { in ReadMakeflags()
62 std::vector<std::string> args; in ReadMakeflags()
74 std::string makeflags = makeflags_env; in ReadMakeflags()
102 static bool ParseMakeflags(std::vector<std::string>& args, in ParseMakeflags()
105 std::vector<char*> getopt_argv; in ParseMakeflags()
109 for (std::string& v : args) { in ParseMakeflags()
307 std::vector<char*> args({argv[1]}); in main()
309 std::vector<std::string> makeflags = ReadMakeflags(); in main()
320 std::string jarg; in main()
328 jarg = "-j" + std::to_string(sysconf(_SC_NPROCESSORS_ONLN) + 2); in main()
[all …]
DMakefile46 $(MAKEPARALLEL_LD) -std=c++11 $(MAKEPARALLEL_CXXFLAGS) -o $@ $^ $(MAKEPARALLEL_LIBS)
51 $(MAKEPARALLEL_CXX) -c -std=c++11 $(MAKEPARALLEL_CXXFLAGS) -o $@ $<
/build/make/tools/ijar/
Dclassfile.cc101 static std::vector<Constant*> const_pool_in; // input constant pool
102 static std::vector<Constant*> const_pool_out; // output constant_pool
103 static std::set<std::string> used_class_names;
134 virtual std::string Display() = 0;
178 void ExtractClassNames(const std::string& desc, size_t* p);
192 std::string Display() { in Display()
217 std::string Display() { in Display()
243 std::string Display() { in Display()
264 std::string Display() { return "int/float"; } in Display()
282 std::string Display() { return "long/double"; } in Display()
[all …]
/build/make/tools/atree/
Doptions.h7 using namespace std; variable
Dfs.h6 using namespace std; variable

12