| /external/tensorflow/tensorflow/core/platform/s3/ |
| s3_file_system_test.cc | 32 string TmpDir(const string& path) { 35 return io::JoinPath(string(test_dir), path); 41 Status WriteString(const string& fname, const string& content) { 49 Status ReadAll(const string& fname, string* content) { 71 const string fname = TmpDir("RandomAccessFile"); 72 const string content = "abcdefghijklmn"; 79 string got [all...] |
| /external/webrtc/webrtc/p2p/client/ |
| httpportallocator.cc | 26 // Helper routine to remove whitespace from the ends of a string. 27 void Trim(std::string& str) { 29 if (first == std::string::npos) { 34 ASSERT(str.find_last_not_of(" \t\r\n") != std::string::npos); 39 typedef std::map<std::string, std::string> StringMap; 40 void ParseMap(const std::string& string, StringMap& map) { 45 start_of_line = string.find_first_not_of("\r\n", end_of_line); 46 if (start_of_line == std::string::npos [all...] |
| /external/libcxx/src/ |
| string.cpp | 1 //===------------------------- string.cpp ---------------------------------===// 10 #include "string" 26 string 27 operator+<char, char_traits<char>, allocator<char> >(char const*, string const&); 34 void throw_helper( const string& msg ) 45 void throw_from_string_out_of_range( const string& func ) 51 void throw_from_string_invalid_arg( const string& func ) 61 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) 81 as_integer(const string& func, const S& s, size_t* idx, int base); 83 // string [all...] |
| /external/protobuf/src/google/protobuf/compiler/javanano/ |
| javanano_helpers.cc | 57 hash_set<string> java_keywords_set_; 83 string RenameJavaKeywordsImpl(const string& input) { 84 string result = input; 101 const string& FieldName(const FieldDescriptor* field) { 112 string UnderscoresToCamelCaseImpl(const string& input, bool cap_next_letter) { 113 string result; 145 string UnderscoresToCamelCase(const FieldDescriptor* field) { 149 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) [all...] |
| /prebuilts/misc/common/swig/include/2.0.11/d/ |
| wrapperloader.swg | 31 static import tango.stdc.string; 36 alias char[] string; 44 static import std.string; 45 static import std.c.string; 54 CCPTR swigToCString(string str) { 58 return std.string.toStringz(str); 62 string swigToDString(CCPTR cstr) { 67 mixin("return std.conv.to!string(cstr);"); 69 return std.c.string.toString(cstr); 76 this(in string[] libNames, in string[] reasons) [all...] |
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/src/ |
| string.cpp | 1 //===------------------------- string.cpp ---------------------------------===// 13 #include "string" 29 string 30 operator+<char, char_traits<char>, allocator<char> >(char const*, string const&); 37 void throw_helper( const string& msg ) 48 void throw_from_string_out_of_range( const string& func ) 54 void throw_from_string_invalid_arg( const string& func ) 64 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) 84 as_integer(const string& func, const S& s, size_t* idx, int base); 86 // string [all...] |
| /external/libchrome/base/strings/ |
| safe_sprintf_unittest.cc | 10 #include <string.h> 97 EXPECT_EQ(std::string(text), std::string(buf)); 104 EXPECT_EQ(std::string(text), std::string(buf)); 163 EXPECT_EQ(std::string(text), std::string(buf)); 170 EXPECT_EQ(std::string(text), std::string(buf)); 195 EXPECT_EQ("A%c", std::string(buf)) [all...] |
| /external/parameter-framework/upstream/parameter/ |
| ElementHandle.cpp | 40 using std::string; 63 string ElementHandle::getName() const 78 string ElementHandle::getDescription() const 104 string ElementHandle::getPath() const 109 string ElementHandle::getKind() const 129 bool ElementHandle::getMappingData(const string &strKey, string &strValue) const 131 const std::string *pStrValue; 145 bool ElementHandle::getStructureAsXML(std::string &xmlSettings, std::string &error) cons [all...] |
| /system/update_engine/common/ |
| utils.h | 27 #include <string> 51 // Formats |vec_str| as a string of the form ["<elem1>", "<elem2>"]. 53 std::string StringVectorToString(const std::vector<std::string> &vec_str); 56 std::string CalculateP2PFileId(const brillo::Blob& payload_hash, 61 std::string ParseECVersion(std::string input_line); 99 bool ReadFile(const std::string& path, brillo::Blob* out_p); 100 bool ReadFile(const std::string& path, std::string* out_p) [all...] |
| /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
| MismatchedTokenException.cs | 48 private readonly ReadOnlyCollection<string> _tokenNames; 53 public MismatchedTokenException(string message) 57 public MismatchedTokenException(string message, Exception innerException) 65 public MismatchedTokenException(int expecting, IIntStream input, IList<string> tokenNames) 70 this._tokenNames = new List<string>(tokenNames).AsReadOnly(); 72 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames) 77 this._tokenNames = new ReadOnlyCollection<string>(new List<string>(tokenNames)); 81 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception innerException [all...] |
| /external/google-breakpad/src/common/ |
| module.h | 44 #include <string> 77 explicit File(const string &name_input) : name(name_input), source_id(0) {} 80 const string name; 90 Function(const string &name_input, const Address &address_input) : 100 const string name; 131 string name; 138 typedef map<string, string> RuleMap; 180 // architecture, and ID string. 181 Module(const string &name, const string &os, const string &architecture [all...] |
| /external/libchrome/dbus/ |
| object_proxy.h | 13 #include <string> 46 const std::string& service_name, 81 const std::string& old_owner, 82 const std::string& new_owner)> NameOwnerChangedCallback; 93 typedef base::Callback<void (const std::string&, const std::string&, bool)> 167 virtual void ConnectToSignal(const std::string& interface_name, 168 const std::string& signal_name, 247 bool ConnectToSignalInternal(const std::string& interface_name, 248 const std::string& signal_name [all...] |
| /external/tensorflow/tensorflow/python/framework/ |
| python_op_gen_main.cc | 19 #include <string> 37 Status ReadOpListFromFile(const string& filename, 38 std::vector<string>* op_list) { 43 string line_contents; 46 // The parser assumes that the op name is the first string on each 72 Status ParseOpListCommandLine(const char* arg, std::vector<string>* op_list) { 73 std::vector<string> op_names = str_util::Split(arg, ','); 77 const string filename = op_names[0].substr(1); 88 // Returns an empty string if the current executable's name does not 90 string InferSourceFileName(const char* argv_zero) [all...] |
| /system/core/adb/ |
| socket_spec.cpp | 19 #include <string> 55 static auto& kLocalSocketTypes = *new std::unordered_map<std::string, LocalSocketType>({ 67 bool parse_tcp_socket_spec(const std::string& spec, std::string* hostname, int* port, 68 std::string* error) { 74 std::string hostname_value; 87 std::string addr = spec.substr(4); 113 static bool tcp_host_is_local(const std::string& hostname) { 118 bool is_socket_spec(const std::string& spec) { 120 std::string prefix = it.first + ":" [all...] |
| /system/nfc/utils/ |
| config.cc | 28 bool parseBytesString(std::string in, std::vector<uint8_t>& out) { 29 vector<string> values = Split(in, ":"); 31 for (string value : values) { 34 string hexified = "0x"; 46 ConfigValue::ConfigValue(std::string value) { 49 type_ = STRING; 66 std::string ConfigValue::getString() const { 67 CHECK(type_ == STRING); 81 bool ConfigValue::parseFromString(std::string in) { 84 type_ = STRING; [all...] |
| /system/tools/hidl/c2hal/ |
| Type.cpp | 47 const std::string Type::decorateName(const std::string &name) const { 50 std::string special = getSpecialTypeName(); 63 std::map<std::string, std::string> Type::kSignedToUnsignedMap = { 74 const std::string Type::signedToUnsigned(const std::string &signedType) { 84 std::map<std::string, std::string> Type::kCToHidlMap = { 103 // { "hidl_string", "string" }, [all...] |
| /system/tools/hidl/docs/src/writer/ |
| formatutils.kt | 25 fun warn(msg: String) { 32 fun tokenValues(tokens: List<Token>): String { 37 * Escape string for HTML. 39 fun htmlEscape(string: String): String { 40 val out = StringBuilder(Math.max(16, string.length)) 41 string.toCharArray().forEach { c -> 56 fun formatTextasHTML(string: String, useParagraphs: Boolean = true): String [all...] |
| /system/update_engine/update_manager/ |
| boxed_value.cc | 22 #include <string> 36 using std::string; 44 string BoxedValue::ValuePrinter<string>(const void* value) { 45 const string* val = reinterpret_cast<const string*>(value); 50 string BoxedValue::ValuePrinter<int>(const void* value) { 56 string BoxedValue::ValuePrinter<unsigned int>(const void* value) { 62 string BoxedValue::ValuePrinter<int64_t>(const void* value) { 68 string BoxedValue::ValuePrinter<uint64_t>(const void* value) [all...] |
| /external/tensorflow/tensorflow/core/framework/ |
| resource_mgr.h | 19 #include <string> 78 // Returns a debug string for *this. 79 virtual string DebugString() = 0; 92 std::function<void(const string&)> cleanup) 96 const string& name() const { return name_; } 99 const string name_; 100 const std::function<void(const string&)> cleanup_; 106 explicit ResourceMgr(const string& default_container); 110 const string& default_container() const { return default_container_; } 118 Status Create(const string& container, const string& name [all...] |
| /external/tensorflow/tensorflow/compiler/xla/service/ |
| hlo.proto | 42 string name = 1; 43 string opcode = 2; 47 repeated string operand_names = 4; 48 repeated string control_predecessor_names = 5; 49 repeated string called_computation_names = 6; 60 string fusion_kind = 11; 115 // The string representation of the infeed configuration. 119 string custom_call_target = 28; 140 string name = 1; 147 string root_name = 3 [all...] |
| /external/webrtc/webrtc/base/ |
| stringencode.h | 15 #include <string> 23 // String Encoding Utilities 27 // of the encoded string, or 0 if the encoding is longer than buflen - 1. 34 // illegal characters still appear in the string. 98 std::string hex_encode(const std::string& str); 99 std::string hex_encode(const char* source, size_t srclen); 100 std::string hex_encode_with_delimiter(const char* source, size_t srclen, 116 size_t hex_decode(char* buffer, size_t buflen, const std::string& source); 118 const std::string& source, char delimiter) [all...] |
| /external/webrtc/webrtc/p2p/base/ |
| turnserver.h | 17 #include <string> 51 std::string ToString() const; 72 const std::string& key); 76 const std::string& key() const { return key_; } 77 const std::string& transaction_id() const { return transaction_id_; } 78 const std::string& username() const { return username_; } 79 const std::string& origin() const { return origin_; } 80 const std::string& last_nonce() const { return last_nonce_; } 81 void set_last_nonce(const std::string& nonce) { last_nonce_ = nonce; } 83 std::string ToString() const [all...] |
| /external/webrtc/webrtc/test/testsupport/ |
| fileutils.cc | 37 #include <string.h> 46 std::string IOSResourcePath(std::string name, std::string extension); 76 void SetExecutablePath(const std::string& path) { 77 std::string working_dir = WorkingDir(); 78 std::string temp_path = path; 81 if (path.find(working_dir) != std::string::npos) { 97 bool FileExists(std::string& file_name) { 104 std::string ProjectRootPath() [all...] |
| /external/xmlrpcpp/src/ |
| XmlRpcValue.h | 13 # include <string> 42 typedef std::map<std::string, XmlRpcValue> ValueStruct; 51 XmlRpcValue(std::string const& value) : _type(TypeString) 52 { _value.asString = new std::string(value); } 55 { _value.asString = new std::string(value); } 66 //! Construct from xml, beginning at *offset chars into the string, updates offset 67 XmlRpcValue(std::string const& xml, int* offset) : _type(TypeInvalid) 83 XmlRpcValue& operator=(const char* rhs) { return operator=(XmlRpcValue(std::string(rhs))); } 91 operator std::string&() { assertTypeOrInvalid(TypeString); return *_value.asString; } 98 XmlRpcValue& operator[](std::string const& k) { assertStruct(); return (*_value.asStruct)[k]; [all...] |
| /external/v8/samples/ |
| process.cc | 33 #include <string.h> 36 #include <string> 52 virtual const string& Path() = 0; 53 virtual const string& Referrer() = 0; 54 virtual const string& Host() = 0; 55 virtual const string& UserAgent() = 0; 68 virtual bool Initialize(map<string, string>* options, 69 map<string, string>* output) = 0 [all...] |