Home
last modified time | relevance | path

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

12345678910>>...66

/external/stlport/test/unit/
Dcmath_test.cpp48 CPPUNIT_CHECK( are_equals(std::abs(int_val), -int_val) ); in import_checks()
49 CPPUNIT_CHECK( are_equals(std::abs(long_val), -long_val) ); in import_checks()
50 CPPUNIT_CHECK( are_equals(std::labs(long_val), -long_val) ); in import_checks()
51 CPPUNIT_CHECK( are_equals(std::abs(float_val), -float_val) ); in import_checks()
52 CPPUNIT_CHECK( are_equals(std::abs(double_val), -double_val) ); in import_checks()
54 CPPUNIT_CHECK( are_equals(std::abs(long_double_val), -long_double_val) ); in import_checks()
57 CPPUNIT_CHECK( are_equals(std::fabs(float_val), -float_val) ); in import_checks()
58 CPPUNIT_CHECK( are_equals(std::fabs(double_val), -double_val) ); in import_checks()
60 CPPUNIT_CHECK( are_equals(std::fabs(long_double_val), -long_double_val) ); in import_checks()
63 std::div_t div_res = std::div(3, 2); in import_checks()
[all …]
/external/chromium/base/
Dstring_util.h136 const std::string& EmptyString();
137 const std::wstring& EmptyWString();
148 bool TrimString(const std::wstring& input,
150 std::wstring* output);
154 bool TrimString(const std::string& input,
156 std::string* output);
171 TrimPositions TrimWhitespace(const std::wstring& input,
173 std::wstring* output);
177 TrimPositions TrimWhitespaceASCII(const std::string& input,
179 std::string* output);
[all …]
Dcommand_line.h42 void ParseFromString(const std::wstring& command_line);
43 static CommandLine FromString(const std::wstring& command_line) { in FromString()
51 void InitFromArgv(const std::vector<std::string>& argv);
56 explicit CommandLine(const std::vector<std::string>& argv) { in CommandLine()
98 bool HasSwitch(const std::string& switch_string) const;
101 bool HasSwitch(const std::wstring& switch_string) const { in HasSwitch()
110 std::string GetSwitchValueASCII(const std::string& switch_string) const { in GetSwitchValueASCII()
113 FilePath GetSwitchValuePath(const std::string& switch_string) const { in GetSwitchValuePath()
118 std::wstring GetSwitchValue(const std::string& switch_string) const;
119 std::wstring GetSwitchValue(const std::wstring& switch_string) const { in GetSwitchValue()
[all …]
Dvalues.h40 typedef std::vector<Value*> ValueVector;
41 typedef std::map<std::wstring, Value*> ValueMap;
57 static Value* CreateStringValue(const std::string& in_value);
58 static Value* CreateStringValue(const std::wstring& in_value);
93 virtual bool GetAsString(std::string* out_value) const;
94 virtual bool GetAsString(std::wstring* out_value) const;
148 explicit StringValue(const std::string& in_value);
151 explicit StringValue(const std::wstring& in_value);
161 bool GetAsString(std::string* out_value) const;
162 bool GetAsString(std::wstring* out_value) const;
[all …]
Dstring_util.cc35 const std::string s;
36 const std::wstring ws;
128 typedef std::string string_type;
150 std::string ascii_string = UTF16ToASCII(string16(str)); in convert_func()
167 typedef std::string string_type;
193 std::string ascii_string = UTF16ToASCII(string16(str)); in convert_func()
213 typedef std::string string_type;
235 std::string ascii_string = UTF16ToASCII(string16(str)); in convert_func()
252 typedef std::string string_type;
273 std::string ascii_string = UTF16ToASCII(string16(str)); in convert_func()
[all …]
Dcommand_line.cc52 static void Lowercase(std::string* parameter) { in Lowercase()
62 void CommandLine::ParseFromString(const std::wstring& command_line) { in ParseFromString()
78 std::wstring arg; in ParseFromString()
91 std::string switch_string; in ParseFromString()
92 std::wstring switch_value; in ParseFromString()
123 void CommandLine::InitFromArgv(const std::vector<std::string>& argv) { in InitFromArgv()
127 const std::string& arg = argv_[i]; in InitFromArgv()
139 std::string switch_string; in InitFromArgv()
140 std::string switch_value; in InitFromArgv()
157 std::string* switch_string, in IsSwitch()
[all …]
/external/chromium/net/http/
Dhttp_util.h24 static std::string PathForRequest(const GURL& url);
29 static std::string SpecForRequest(const GURL& url);
35 static size_t FindDelimiter(const std::string& line,
43 static void ParseContentType(const std::string& content_type_str,
44 std::string* mime_type,
45 std::string* charset,
54 static bool ParseRanges(const std::string& headers,
55 std::vector<HttpByteRange>* ranges);
60 static bool HasHeader(const std::string& headers, const char* name);
66 static std::string StripHeaders(const std::string& headers,
[all …]
Dhttp_response_headers.h40 explicit HttpResponseHeaders(const std::string& raw_headers);
65 void RemoveHeader(const std::string& name);
72 void AddHeader(const std::string& header);
76 void ReplaceStatusLine(const std::string& new_status);
100 void GetNormalizedHeaders(std::string* output) const;
112 bool GetNormalizedHeader(const std::string& name, std::string* value) const;
117 std::string GetStatusLine() const;
130 std::string GetStatusText() const;
141 std::string* name,
142 std::string* value) const;
[all …]
Dhttp_auth_handler_digest.h18 virtual std::string GenerateCredentials(const std::wstring& username,
19 const std::wstring& password,
24 virtual bool Init(std::string::const_iterator challenge_begin, in Init()
25 std::string::const_iterator challenge_end) { in Init()
60 bool ParseChallenge(std::string::const_iterator challenge_begin,
61 std::string::const_iterator challenge_end);
64 bool ParseChallengeProperty(const std::string& name,
65 const std::string& value);
68 static std::string GenerateNonce();
71 static std::string QopToString(int qop);
[all …]
Dhttp_response_headers.cc78 bool ShouldUpdateHeader(const std::string::const_iterator& name_begin, in ShouldUpdateHeader()
79 const std::string::const_iterator& name_end) { in ShouldUpdateHeader()
91 HttpResponseHeaders::HttpResponseHeaders(const std::string& raw_input) in HttpResponseHeaders()
98 std::string raw_input; in HttpResponseHeaders()
127 std::string blob; in Persist()
143 std::string header_name(parsed_[i].name_begin, parsed_[i].name_end); in Persist()
164 std::string new_raw_headers(raw_headers_.c_str()); in Update()
183 const std::string::const_iterator& name_begin = new_parsed[i].name_begin; in Update()
184 const std::string::const_iterator& name_end = new_parsed[i].name_end; in Update()
186 std::string name(name_begin, name_end); in Update()
[all …]
Dhttp_auth.h61 std::wstring username;
62 std::wstring password;
67 static std::string GetChallengeHeaderName(Target target);
71 static std::string GetAuthorizationHeaderName(Target target);
76 static void CreateAuthHandler(const std::string& challenge,
108 ChallengeTokenizer(std::string::const_iterator begin, in ChallengeTokenizer()
109 std::string::const_iterator end) in ChallengeTokenizer()
115 std::string::const_iterator scheme_begin() const { return scheme_begin_; } in scheme_begin()
116 std::string::const_iterator scheme_end() const { return scheme_end_; } in scheme_end()
117 std::string scheme() const { in scheme()
[all …]
Dhttp_auth_handler_digest.cc46 std::string HttpAuthHandlerDigest::GenerateNonce() { in GenerateNonce()
49 std::string cnonce; in GenerateNonce()
57 std::string HttpAuthHandlerDigest::QopToString(int qop) { in QopToString()
69 std::string HttpAuthHandlerDigest::AlgorithmToString(int algorithm) { in AlgorithmToString()
80 std::string HttpAuthHandlerDigest::GenerateCredentials( in GenerateCredentials()
81 const std::wstring& username, in GenerateCredentials()
82 const std::wstring& password, in GenerateCredentials()
86 std::string cnonce = GenerateNonce(); in GenerateCredentials()
96 std::string method; in GenerateCredentials()
97 std::string path; in GenerateCredentials()
[all …]
/external/chromium/net/base/
Dnet_util.h40 extern std::set<int> explicitly_allowed_ports;
58 bool ParseHostAndPort(std::string::const_iterator host_and_port_begin,
59 std::string::const_iterator host_and_port_end,
60 std::string* host,
62 bool ParseHostAndPort(const std::string& host_and_port,
63 std::string* host,
67 std::string GetHostAndPort(const GURL& url);
71 std::string GetHostAndOptionalPort(const GURL& url);
75 std::string NetAddressToString(const struct addrinfo* net_address);
78 std::string GetHostName();
[all …]
Dcookie_monster.h47 typedef std::multimap<std::string, CanonicalCookie*> CookieMap;
48 typedef std::pair<CookieMap::iterator, CookieMap::iterator> CookieMapItPair;
49 typedef std::pair<std::string, CanonicalCookie*> KeyedCanonicalCookie;
50 typedef std::pair<std::string, CanonicalCookie> CookieListPair;
51 typedef std::vector<CookieListPair> CookieList;
73 static base::Time ParseCookieTime(const std::string& time_string);
77 const std::string& cookie_line,
79 virtual std::string GetCookiesWithOptions(const GURL& url,
81 virtual void DeleteCookie(const GURL& url, const std::string& cookie_name);
87 const std::string& cookie_line,
[all …]
Dsdch_manager.h163 const std::string& text() const { return text_; } in text()
173 Dictionary(const std::string& dictionary_text, size_t offset,
174 const std::string& client_hash, const GURL& url,
175 const std::string& domain, const std::string& path,
176 const base::Time& expiration, const std::set<int> ports);
180 const std::string& client_hash() const { return client_hash_; } in client_hash()
188 static bool CanSet(const std::string& domain, const std::string& path,
189 const std::set<int> ports, const GURL& dictionary_url);
196 static bool PathMatch(const std::string& path,
197 const std::string& restriction);
[all …]
Dsdch_filter_unittest.cc65 std::string NewSdchCompressedData(const std::string dictionary);
67 const std::string test_vcdiff_dictionary_;
68 const std::string vcdiff_compressed_data_;
69 const std::string expanded_; // Desired final, decompressed data.
74 std::string SdchFilterTest::NewSdchCompressedData( in NewSdchCompressedData()
75 const std::string dictionary) { in NewSdchCompressedData()
76 std::string client_hash; in NewSdchCompressedData()
77 std::string server_hash; in NewSdchCompressedData()
81 std::string compressed(server_hash); in NewSdchCompressedData()
91 std::string client_hash, server_hash; in TEST_F()
[all …]
Dnet_util.cc188 bool QPDecode(const std::string& input, std::string* output) { in QPDecode()
189 std::string temp; in QPDecode()
191 std::string::const_iterator it = input.begin(); in QPDecode()
224 bool DecodeBQEncoding(const std::string& part, RFC2047EncodingType enc_type, in DecodeBQEncoding()
225 const std::string& charset, std::string* output) { in DecodeBQEncoding()
226 std::string decoded; in DecodeBQEncoding()
258 bool DecodeWord(const std::string& encoded_word, in DecodeWord()
259 const std::string& referrer_charset, in DecodeWord()
261 std::string* output) { in DecodeWord()
267 std::wstring wide_output; in DecodeWord()
[all …]
/external/srec/tools/grxmlcompile/
Dgrxmldoc.h44 typedef std::map<std::string, KeywordValues> KEYWDPAIR;
48 std::string RuleRefName;
62 int addPhonemeToList( std::string const& s );
63 bool findPhoneme( int i, std::string & s );
64 bool getHMMSequence (int centre, int left, int right, std::vector<int> & modelSequence);
68 bool findSubGraph(std::string & s, SubGraph *&p_SubGraph);
69 bool findRule(int i, std::string &s );
70 bool findTag(int i, std::string &s );
71 bool findLabel(int i, std::string &s );
72 bool findSubGraphIndex( SubGraph *p_SubGraph, std::string &s );
[all …]
Dvocab.cpp38 Vocabulary::Vocabulary( std::string const & vocFileName ) in Vocabulary()
44 std::cout << "Error: " << ESR_rc2str(rc) <<std::endl; in Vocabulary()
72 int Pronunciation::lookup( Vocabulary & vocab, std::string & phrase ) in lookup()
88 std::cout << "DEBUG: " << phrase <<" to be looked up" << std::endl; in lookup()
93 std::cout <<"ERROR: " << ESR_rc2str(rc) << std::endl; in lookup()
96 std::cout <<"OUTPUT: " << prons << " num " << len << std::endl; in lookup()
104 std::cout << "DEBUG: used " << len_used << " now " << LSTRLEN(pron) << std::endl; in lookup()
106 std::string pronString( pron ); // wstring conversion if needed in lookup()
109 std::cout << "DEBUG: " << phrase << " " << pron << std::endl; in lookup()
117 int Pronunciation::addPron( std::string & s ) in addPron()
[all …]
Dnetw_dump.cpp44 void SubGraph::WriteForwardGraphFile( std::string & fileName, GRXMLDoc &p_Doc ) in WriteForwardGraphFile()
48 std::string inLabel; in WriteForwardGraphFile()
49 std::ofstream outfile; in WriteForwardGraphFile()
50 std::string label; in WriteForwardGraphFile()
51 std::string separator = "\t"; in WriteForwardGraphFile()
52 std::string Eps = "eps"; in WriteForwardGraphFile()
63 outfile << arc[loc]->fromId << std::endl; in WriteForwardGraphFile()
66 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << Eps << std::endl; in WriteForwardGraphFile()
80 std::stringstream ss; in WriteForwardGraphFile()
84 …e << arc[loc]->fromId << separator << arc[loc]->toId << separator << inLabel.c_str() << std::endl; in WriteForwardGraphFile()
[all …]
Dgrxmldoc.cpp37 #define FATAL_ERROR(x,y) { std::cout << (x) << std::endl; exit ((y)); }
38 #define WARNING(x) std::cout << (x) << std::endl;
42 #define DEBUG_PRINT(x) std::cout << (x) << std::endl;
51 using namespace std;
55 std::cout << "ERROR: Empty string of type " << t <<std::endl; \
59 int get_range(const std::string& s, int* minCnt, int* maxCnt) in get_range()
61 std::string sval; in get_range()
117 bool GRXMLDoc::parseGrammar( XMLNode &node, std::string & xMLFileName ) in parseGrammar()
186 std::string name = node.Value(); in beginNode()
193 std::string str_name(cc_name); in beginNode()
[all …]
/external/chromium/sdch/open-vcdiff/src/
Dvcdiff_main.cc36 using std::string;
106 std::vector<char>* buffer);
154 std::vector<char> dictionary_;
156 std::auto_ptr<open_vcdiff::HashedDictionary> hashed_dictionary_;
181 std::vector<char> input_buffer_;
185 std::vector<char> compare_buffer_;
226 std::cerr << "Error opening dictionary file '" << FLAGS_dictionary in OpenDictionary()
227 << "': " << strerror(errno) << std::endl; in OpenDictionary()
232 std::cerr << "Error finding size of dictionary file '" << FLAGS_dictionary in OpenDictionary()
233 << "': " << strerror(errno) << std::endl; in OpenDictionary()
[all …]
/external/chromium/base/crypto/
Drsa_private_key.h51 bool Export(std::vector<uint8>* output);
55 bool ExportPublicKeyInfo(std::vector<uint8>* output);
61 bool Import(const std::vector<uint8>& input);
65 std::vector<uint8>* modulus() { return &modulus_; }; in modulus()
66 std::vector<uint8>* public_exponent() { return &public_exponent_; }; in public_exponent()
67 std::vector<uint8>* private_exponent() { return &private_exponent_; }; in private_exponent()
68 std::vector<uint8>* prime1() { return &prime1_; }; in prime1()
69 std::vector<uint8>* prime2() { return &prime2_; }; in prime2()
70 std::vector<uint8>* exponent1() { return &exponent1_; }; in exponent1()
71 std::vector<uint8>* exponent2() { return &exponent2_; }; in exponent2()
[all …]
/external/astl/tests/
Dtest_limits.cpp40 EXPECT_TRUE(std::numeric_limits<float>::is_specialized); in testSpecialized()
41 EXPECT_TRUE(std::numeric_limits<double>::is_specialized); in testSpecialized()
42 EXPECT_TRUE(std::numeric_limits<long>::is_specialized); in testSpecialized()
43 EXPECT_TRUE(std::numeric_limits<long long>::is_specialized); in testSpecialized()
49 EXPECT_TRUE(std::numeric_limits<float>::min() == __FLT_MIN__); in testMin()
50 EXPECT_TRUE(std::numeric_limits<double>::min() == __DBL_MIN__); in testMin()
51 EXPECT_TRUE(std::numeric_limits<long>::min() == LONG_MIN); in testMin()
57 EXPECT_TRUE(std::numeric_limits<float>::max() == __FLT_MAX__); in testMax()
58 EXPECT_TRUE(std::numeric_limits<double>::max() == __DBL_MAX__); in testMax()
59 EXPECT_TRUE(std::numeric_limits<long>::max() == LONG_MAX); in testMax()
[all …]
/external/zlib/contrib/iostream3/
Dzfstream.cc22 : file(NULL), io_mode(std::ios_base::openmode(0)), own_fd(false), in gzfilebuf()
52 std::ios_base::openmode mode) in open()
58 if ((mode & std::ios_base::in) && (mode & std::ios_base::out)) in open()
80 std::ios_base::openmode mode) in attach()
86 if ((mode & std::ios_base::in) && (mode & std::ios_base::out)) in attach()
131 gzfilebuf::open_mode(std::ios_base::openmode mode, in open_mode()
134 bool testb = mode & std::ios_base::binary; in open_mode()
135 bool testi = mode & std::ios_base::in; in open_mode()
136 bool testo = mode & std::ios_base::out; in open_mode()
137 bool testt = mode & std::ios_base::trunc; in open_mode()
[all …]

12345678910>>...66