Searched defs:pos (Results 1 - 8 of 8) sorted by relevance

/build/make/tools/atree/
H A Dfs.cpp105 size_t pos = 0; local
108 if (path.length() != 0 and path[0] == '/') pos++;
111 pos = path.find('/', pos);
112 string p = path.substr(0, pos);
128 pos++;
H A Dfiles.cpp152 string::size_type pos = 0; local
153 while((pos = result.find(it->first, pos)) != string::npos) {
154 result = result.replace(pos, it->first.length(), it->second);
155 pos += it->second.length();
385 int pos = filename.rfind('/'); local
386 if (pos <= 0) {
389 return filename.substr(0, pos);
/build/tools/atree/
H A Dfs.cpp105 size_t pos = 0; local
108 if (path.length() != 0 and path[0] == '/') pos++;
111 pos = path.find('/', pos);
112 string p = path.substr(0, pos);
128 pos++;
H A Dfiles.cpp152 string::size_type pos = 0; local
153 while((pos = result.find(it->first, pos)) != string::npos) {
154 result = result.replace(pos, it->first.length(), it->second);
155 pos += it->second.length();
385 int pos = filename.rfind('/'); local
386 if (pos <= 0) {
389 return filename.substr(0, pos);
/build/kati/
H A Dstring_piece.cc56 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const {
57 size_type ret = std::min(length_ - pos, n);
58 memcpy(buf, ptr_ + pos, ret);
62 size_type StringPiece::find(const StringPiece& s, size_type pos) const {
63 if (pos > length_)
67 std::search(ptr_ + pos, ptr_ + length_, s.ptr_, s.ptr_ + s.length_);
72 size_type StringPiece::find(char c, size_type pos) const {
73 if (pos >= length_)
76 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
80 size_type StringPiece::rfind(const StringPiece& s, size_type pos) cons
231 substr(size_type pos, size_type n) const argument
[all...]
H A Dninja.cc87 size_t pos = GetGomaccPosForAndroidCompileCommand(cmdline.substr(index)); local
88 return pos == string::npos ? string::npos : pos + index;
436 size_t pos = GetGomaccPosForAndroidCompileCommand(translated); local
437 if (pos != string::npos) {
438 cmd_buf->insert(cmd_start + pos, gomacc_);
/build/core/
H A Ddroiddoc.mk195 pos = $(if $(findstring $1,$2),$(call pos,$1,$(wordlist 2,$(words $2),$2),x $3),$3) macro
196 metalava_args := $(wordlist 1, $(words $(call pos,--generate-documentation,$(LOCAL_DROIDDOC_OPTIONS))), \
198 remaining_args := $(wordlist $(words $(call pos,--generate-documentation,$(LOCAL_DROIDDOC_OPTIONS))), \
/build/make/core/
H A Ddroiddoc.mk195 pos = $(if $(findstring $1,$2),$(call pos,$1,$(wordlist 2,$(words $2),$2),x $3),$3) macro
196 metalava_args := $(wordlist 1, $(words $(call pos,--generate-documentation,$(LOCAL_DROIDDOC_OPTIONS))), \
198 remaining_args := $(wordlist $(words $(call pos,--generate-documentation,$(LOCAL_DROIDDOC_OPTIONS))), \

Completed in 96 milliseconds