/build/kati/ |
string_piece_test.cc | 26 unordered_set<StringPiece> sps; 27 sps.insert(StringPiece("foo")); 28 sps.insert(StringPiece("foo")); 29 sps.insert(StringPiece("bar")); 31 assert(sps.count(StringPiece("foo")) == 1); 32 assert(sps.count(StringPiece("bar")) == 1); 34 assert(StringPiece("hogefugahige") == StringPiece("hogefugahige")); 35 assert(StringPiece("hogefugahoge") != StringPiece("hogefugahige")) [all...] |
strutil.h | 29 StringPiece operator*() const; 34 const StringPiece* in; 39 explicit WordScanner(StringPiece in); 44 void Split(vector<StringPiece>* o); 47 StringPiece in_; 54 void Write(StringPiece s); 64 explicit ScopedTerminator(StringPiece s); 68 StringPiece s_; 75 for (StringPiece s : v) { 84 void AppendString(StringPiece str, string* out) [all...] |
parser.h | 29 void Parse(StringPiece buf, const Loc& loc, vector<Stmt*>* out_asts); 30 void ParseNotAfterRule(StringPiece buf, const Loc& loc, 33 void ParseAssignStatement(StringPiece line, size_t sep, 34 StringPiece* lhs, StringPiece* rhs, AssignOp* op);
|
testutil.h | 31 StringPiece GetStringPiece(StringPiece s) { return s; } 32 StringPiece GetStringPiece(size_t v) {
|
/external/clang/test/SemaCXX/ |
conversion-incomplete-type.cpp | 5 class StringPiece; // expected-note {{forward declaration of 'StringPiece'}} \ 6 // expected-note {{forward declaration of 'StringPiece'}} 9 void expectStringPiece(const StringPiece& blah) {}; // expected-note {{passing argument to parameter 'blah' here}} 12 expectStringPiece(s); // expected-error {{no viable conversion from 'const string' to incomplete type 'const StringPiece'}} 17 static void expectStringPiece(const StringPiece& blah) {}; // expected-note {{passing argument to parameter 'blah' here}} 20 expectStringPiece(s); // expected-error {{no viable conversion from 'const string' to incomplete type 'const StringPiece'}}
|
/external/icu/icu4c/source/common/unicode/ |
stringpiece.h | 25 * \brief C++ API: StringPiece: Read-only byte string wrapper class. 40 * in a "const char*" or a "string" wherever a "StringPiece" is 43 * Functions or methods may use const StringPiece& parameters to accept either 45 * a StringPiece. 47 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary 52 class U_COMMON_API StringPiece : public UMemory { 59 * Default constructor, creates an empty StringPiece. 62 StringPiece() : ptr_(NULL), length_(0) { } 68 StringPiece(const char* str); 74 StringPiece(const std::string& str [all...] |
/frameworks/base/tools/aapt2/ |
Flags.h | 21 #include "util/StringPiece.h" 32 Flags& requiredFlag(const StringPiece& name, const StringPiece& description, 34 Flags& requiredFlagList(const StringPiece& name, const StringPiece& description, 36 Flags& optionalFlag(const StringPiece& name, const StringPiece& description, 38 Flags& optionalFlagList(const StringPiece& name, const StringPiece& description, 40 Flags& optionalSwitch(const StringPiece& name, const StringPiece& description [all...] |
Main.cpp | 17 #include "util/StringPiece.h" 24 extern int compile(const std::vector<StringPiece>& args); 25 extern int link(const std::vector<StringPiece>& args); 26 extern int dump(const std::vector<StringPiece>& args); 27 extern int diff(const std::vector<StringPiece>& args); 36 std::vector<aapt::StringPiece> args; 41 aapt::StringPiece command(argv[0]);
|
/frameworks/base/tools/aapt2/util/ |
Files.h | 24 #include "util/StringPiece.h" 53 FileType getFileType(const StringPiece& path); 59 std::vector<std::string> listFiles(const StringPiece& root); 64 void appendPath(std::string* base, StringPiece part); 70 bool mkdirs(const StringPiece& path); 75 StringPiece getStem(const StringPiece& path); 80 StringPiece getFilename(const StringPiece& path); 86 StringPiece getExtension(const StringPiece& path) [all...] |
StringPiece_test.cpp | 22 #include "util/StringPiece.h" 27 StringPiece a("hello world", 5); 28 StringPiece b("hello moon", 5); 54 EXPECT_TRUE(StringPiece(testing) > banana); 55 EXPECT_TRUE(StringPiece(testing) > car); 56 EXPECT_TRUE(StringPiece(banana) < testing); 57 EXPECT_TRUE(StringPiece(banana) < car); 58 EXPECT_TRUE(StringPiece(car) < testing); 59 EXPECT_TRUE(StringPiece(car) > banana); 63 StringPiece text("I am a leaf on the wind.") [all...] |
/external/libchrome/base/ |
base64.h | 16 BASE_EXPORT void Base64Encode(const StringPiece& input, std::string* output); 21 BASE_EXPORT bool Base64Decode(const StringPiece& input, std::string* output);
|
vlog.h | 47 int GetVlogLevel(const base::StringPiece& file) const; 72 BASE_EXPORT bool MatchVlogPattern(const base::StringPiece& string, 73 const base::StringPiece& vlog_pattern);
|
/external/libchrome/base/strings/ |
pattern.h | 19 BASE_EXPORT bool MatchPattern(const StringPiece& string, 20 const StringPiece& pattern);
|
string_split.h | 47 StringPiece input, 48 StringPiece separators, 69 BASE_EXPORT std::vector<StringPiece> SplitStringPiece( 70 StringPiece input, 71 StringPiece separators, 86 BASE_EXPORT bool SplitStringIntoKeyValuePairs(StringPiece input, 100 BASE_EXPORT void SplitStringUsingSubstr(StringPiece input, 101 StringPiece delimiter, 121 BASE_EXPORT std::vector<StringPiece> SplitStringPieceUsingSubstr( 122 StringPiece input [all...] |
/external/regex-re2/re2/testing/ |
tester.h | 11 #include "re2/stringpiece.h" 54 TestInstance(const StringPiece& regexp, Prog::MatchKind kind, 62 bool RunCase(const StringPiece& text, const StringPiece& context, 68 const StringPiece& text, const StringPiece& context, 72 void LogMatch(const char* prefix, Engine e, const StringPiece& text, 73 const StringPiece& context, Prog::Anchor anchor); 75 const StringPiece& regexp_str_; // regexp being tested 93 explicit Tester(const StringPiece& regexp) [all...] |
/external/icu/icu4c/source/common/ |
stringpiece.cpp | 10 #include "unicode/stringpiece.h" 16 StringPiece::StringPiece(const char* str) 19 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { 29 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { 44 void StringPiece::set(const char* str) [all...] |
/external/libweave/third_party/chromium/base/json/ |
string_escape.h | 28 bool EscapeJSONString(const StringPiece& str, 34 std::string GetQuotedJSONString(const StringPiece& str); 47 std::string EscapeBytesAsInvalidJSONString(const StringPiece& str,
|
/external/libchrome/base/trace_event/ |
trace_event_argument.h | 37 void SetString(const char* name, base::StringPiece value); 43 void SetIntegerWithCopiedName(base::StringPiece name, int value); 44 void SetDoubleWithCopiedName(base::StringPiece name, double value); 45 void SetBooleanWithCopiedName(base::StringPiece name, bool value); 46 void SetStringWithCopiedName(base::StringPiece name, 47 base::StringPiece value); 48 void SetValueWithCopiedName(base::StringPiece name, 50 void BeginDictionaryWithCopiedName(base::StringPiece name); 51 void BeginArrayWithCopiedName(base::StringPiece name); 56 void AppendString(base::StringPiece); [all...] |
/external/regex-re2/re2/ |
stringpiece.h | 7 // Functions or methods may use const StringPiece& parameters to accept either 9 // a StringPiece. The implicit conversion means that it is often appropriate 11 // StringPiece as would be appropriate for most other Google classes. 13 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary 29 class StringPiece { 36 // in a "const char*" or a "string" wherever a "StringPiece" is 38 StringPiece() : ptr_(NULL), length_(0) { } 39 StringPiece(const char* str) 41 StringPiece(const std::string& str) 43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { [all...] |
/external/regex-re2/util/ |
stringpiece.cc | 5 #include "re2/stringpiece.h" 8 using re2::StringPiece; 10 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { 15 bool StringPiece::_equal(const StringPiece& x, const StringPiece& y) { 32 void StringPiece::CopyToString(string* target) const { 36 int StringPiece::copy(char* buf, size_type n, size_type pos) const { 42 int StringPiece::find(const StringPiece& s, size_type pos) const [all...] |
/external/libweave/third_party/chromium/base/strings/ |
string_util.h | 78 std::string ToLowerASCII(StringPiece str); 80 std::string ToUpperASCII(StringPiece str); 104 int CompareCaseInsensitiveASCII(StringPiece a, StringPiece b); 109 bool EqualsCaseInsensitiveASCII(StringPiece a, StringPiece b); 122 const StringPiece& replace_chars, 139 StringPiece trim_chars, 142 // StringPiece versions of the above. The returned pieces refer to the original 144 StringPiece TrimString(StringPiece input [all...] |
string_number_conversions.h | 66 bool StringToInt(const StringPiece& input, int* output); 68 bool StringToUint(const StringPiece& input, unsigned* output); 70 bool StringToInt64(const StringPiece& input, int64_t* output); 72 bool StringToUint64(const StringPiece& input, uint64_t* output); 74 bool StringToSizeT(const StringPiece& input, size_t* output); 100 bool HexStringToInt(const StringPiece& input, int* output); 106 bool HexStringToUInt(const StringPiece& input, uint32_t* output); 111 bool HexStringToInt64(const StringPiece& input, int64_t* output); 117 bool HexStringToUInt64(const StringPiece& input, uint64_t* output);
|
/external/libchrome/crypto/ |
hmac.h | 59 bool Init(const base::StringPiece& key) WARN_UNUSED_RESULT { 67 bool Sign(const base::StringPiece& data, unsigned char* digest, 77 bool Verify(const base::StringPiece& data, 78 const base::StringPiece& digest) const WARN_UNUSED_RESULT; 83 const base::StringPiece& data, 84 const base::StringPiece& digest) const WARN_UNUSED_RESULT;
|
/external/libchrome/base/json/ |
string_escape.h | 28 BASE_EXPORT bool EscapeJSONString(const StringPiece& str, 32 // Performs a similar function to the UTF-8 StringPiece version above, 41 BASE_EXPORT std::string GetQuotedJSONString(const StringPiece& str); 55 BASE_EXPORT std::string EscapeBytesAsInvalidJSONString(const StringPiece& str,
|
/external/pcre/dist/ |
pcre_stringpiece.cc | 41 std::ostream& operator<<(std::ostream& o, const pcrecpp::StringPiece& piece) {
|