Searched defs:string (Results 51 - 75 of 1253) sorted by path

1234567891011>>

/external/chromium_org/base/android/jni_generator/
H A Djni_generator.py14 import string namespace
15 from string import Template
358 """Parse jarjar mappings from a string."""
484 name: string.
486 return_type: string.
523 # Regex to match a string like "@CalledByNative public void foo(int bar)".
1021 A string containing the params.
1120 """Return a string of arguments to call from native into Java"""
1192 """Returns a string."""
/external/chromium_org/base/
H A Dcommand_line.cc45 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) { argument
48 if (string.compare(0, prefix.length(), prefix) == 0)
54 // Fills in |switch_string| and |switch_value| if |string| is a switch.
56 bool IsSwitch(const CommandLine::StringType& string, argument
61 size_t prefix_length = GetSwitchPrefixLength(string);
62 if (prefix_length == 0 || prefix_length == string.length())
65 const size_t equals_position = string.find(kSwitchValueSeparator);
66 *switch_string = string.substr(0, equals_position);
68 *switch_value = string.substr(equals_position + 1);
97 std::string LowerASCIIOnWindow argument
[all...]
H A Dvlog.cc23 explicit VmodulePattern(const std::string& pattern);
27 std::string pattern;
32 VlogInfo::VmodulePattern::VmodulePattern(const std::string& pattern)
37 // it's meant to be tested against the entire __FILE__ string.
38 std::string::size_type first_slash = pattern.find_first_of("\\/");
39 if (first_slash != std::string::npos)
47 VlogInfo::VlogInfo(const std::string& v_switch,
48 const std::string& vmodule_switch,
53 typedef std::pair<std::string, std::string> KVPai
128 MatchVlogPattern(const base::StringPiece& string, const base::StringPiece& vlog_pattern) argument
[all...]
/external/chromium_org/base/files/
H A Dfile_path.cc7 #include <string.h>
547 path_str.reserve(path_.length() + 1); // Only allocate string once.
573 std::string::npos &&
574 component.find(kParentDirectory) != std::string::npos) {
589 std::string FilePath::MaybeAsASCII() const {
592 return std::string();
595 std::string FilePath::AsUTF8Unsafe() const {
612 FilePath FilePath::FromUTF8Unsafe(const std::string& utf8) {
634 std::string FilePath::MaybeAsASCII() const {
637 return std::string();
1135 HFSReadNextNonIgnorableCodepoint(const char* string, int length, int* index) argument
1185 GetHFSDecomposedForm(const StringType& string) argument
[all...]
/external/chromium_org/base/i18n/
H A Dcase_conversion.cc13 string16 ToLower(const StringPiece16& string) { argument
14 icu::UnicodeString unicode_string(string.data(), string.size());
19 string16 ToUpper(const StringPiece16& string) { argument
20 icu::UnicodeString unicode_string(string.data(), string.size());
H A Drtl.cc21 std::string GetLocaleString(const icu::Locale& locale) {
26 std::string result =
35 std::string variant_str(variant);
71 // Convert the ICU default locale to a string.
72 std::string GetConfiguredLocale() {
76 // Convert the ICU canonicalized locale to a string.
77 std::string GetCanonicalLocale(const char* locale) {
82 std::string ICULocaleName(const std::string& locale_string) {
94 std::string languag
142 const UChar* string = text.c_str(); local
158 const UChar* string = text.c_str(); local
173 const UChar* string = text.c_str(); local
304 const UChar* string = text.c_str(); local
[all...]
H A Dstreaming_utf8_validator.cc54 bool StreamingUtf8Validator::Validate(const std::string& string) { argument
55 return StreamingUtf8Validator().AddBytes(string.data(), string.size()) ==
/external/chromium_org/base/json/
H A Djson_parser.cc28 // This and the class below are used to own the JSON input string for when
29 // string tokens are stored as StringPiece instead of std::string. This
30 // optimization avoids about 2/3rds of string memory copies. The constructor
31 // takes ownership of the input string. The real root value is Swap()ed into
35 DictionaryHiddenRootValue(std::string* json, Value* root) : json_(json) {
43 // First deep copy to convert JSONStringValue to std::string and swap that
58 virtual bool RemoveWithoutPathExpansion(const std::string& key,
67 // to convert any JSONStringValues to std::string.
78 scoped_ptr<std::string> json
588 StringBuilder string; local
[all...]
/external/chromium_org/base/prefs/
H A Dpref_member_unittest.cc20 const char kStringPref[] = "string";
88 void OnPreferenceChanged(const std::string& pref_name) {
170 // Test string
171 StringPrefMember string; local
172 string.Init(kStringPref, &prefs);
176 EXPECT_EQ("default", string.GetValue());
177 EXPECT_EQ("default", *string);
180 string.SetValue("foo");
181 EXPECT_EQ("foo", string.GetValue());
183 EXPECT_EQ("foo", *string);
[all...]
/external/chromium_org/base/strings/
H A Dnullable_string16.h21 NullableString16(const string16& string, bool is_null) argument
22 : string_(string), is_null_(is_null) {
25 const string16& string() const { return string_; } function in class:base::NullableString16
34 return a.is_null() == b.is_null() && a.string() == b.string();
H A Dstring_tokenizer.h9 #include <string>
15 // StringTokenizerT is a simple string tokenizer class. It works like an
17 // refer to the next token in the input string. The user may optionally
20 // Warning: be careful not to pass a C string into the 2-arg constructor:
22 // This will create a temporary std::string, save the begin() and end()
23 // iterators, and then the string will be freed before we actually start
25 // Instead, use a std::string or use the 3 arg constructor of CStringTokenizer.
46 // std::string input = "no-cache=\"foo, bar\", private";
62 // std::string input = "text/html; charset=UTF-8; foo=bar";
102 // The string objec
104 StringTokenizerT(const str& string, const str& delims) argument
[all...]
H A Dstring_util.cc13 #include <string.h>
36 // prevents other code that might accidentally use Singleton<string> from
40 const std::string s;
48 // Used by ReplaceStringPlaceholders to track the position in the string of
58 // Starting position in the string.
79 // The format string ended in the middle of a specification. Call
81 // string is equally broken on all platforms.
96 // Portable, keep scanning the rest of the format string.
106 const std::string& EmptyString() {
141 bool ReplaceChars(const std::string
714 EatSameChars(const CHAR** pattern, const CHAR* pattern_end, const CHAR** string, const CHAR* string_end, NEXT next) argument
[all...]
/external/chromium_org/base/third_party/nspr/
H A Dprtime.cc490 * This parses a time/date string into a PRTime
493 * if the time/date string can't be parsed.
514 * If the input string doesn't contain a description of the timezone,
515 * we consult the `default_to_gmt' to decide whether the string should
518 * the time string which you are parsing.
523 const char *string,
541 const char *rest = string;
545 PR_ASSERT(string && result);
546 if (!string || !result) return PR_FAILURE;
1088 if (*rest == '-' && ((rest > string
522 PR_ParseTimeString( const char *string, PRBool default_to_gmt, PRTime *result_imploded) argument
[all...]
/external/chromium_org/build/
H A Dgyp_chromium16 import string namespace
80 # use the string '1' here so we have a consistent definition whether
/external/chromium_org/cc/
H A DPRESUBMIT.py12 import string namespace
125 string.join(pass_by_value_types, '|'),
/external/chromium_org/chrome/browser/chromeos/timezone/
H A Dtimezone_request.cc7 #include <string>
53 const char* string; member in struct:chromeos::__anon3480::StatusString2Enum
123 std::string query(url.query());
127 std::string api_key = google_apis::GetAPIKey();
150 const std::string& message,
165 const std::string& response_body,
178 std::string error_msg;
197 std::string status;
207 if (status != statusString2Enum[i].string)
268 const std::string
[all...]
/external/chromium_org/chrome/browser/metrics/variations/
H A Dvariations_service.cc82 const std::string forced_channel =
97 // Returns a string that will be used for the value of the 'osname' URL param
99 std::string GetPlatformString() {
136 std::string GetRestrictParameterPref(PrefService* policy_pref_service) {
137 std::string parameter;
200 // Gets the hardware class and returns it as a string. This returns an empty
201 // string if the client is not ChromeOS.
202 std::string GetHardwareClass() {
206 return std::string();
223 // Overrides the string resourc
225 OverrideUIString(uint32_t hash, const base::string16& string) argument
[all...]
/external/chromium_org/chrome/browser/sync/
H A Dprofile_sync_service_android.cc97 const std::string& str_object_id,
99 const std::string& state) {
188 std::string status(sync_service_->QuerySyncStatusSummaryString());
196 std::string machine_tag = ConvertJavaStringToUTF8(env, tag);
271 std::string key = ConvertJavaStringToUTF8(env, passphrase);
278 std::string key = ConvertJavaStringToUTF8(env, passphrase);
337 const std::string& sync_username =
437 std::string about_info_json;
512 std::string ProfileSyncServiceAndroid::ModelTypeSelectionToStringForTest(
514 ScopedJavaLocalRef<jstring> string local
[all...]
/external/chromium_org/chrome/browser/ui/autofill/
H A Dautofill_dialog_types.h189 DialogOverlayString string; member in struct:autofill::DialogOverlayState
H A Dgenerated_credit_card_bubble_controller_unittest.cc41 base::string16 RangeOfString(const base::string16& string, argument
43 return string.substr(range.start(), range.end() - range.start());
/external/chromium_org/chrome/renderer/net/
H A Dpredictor_queue_unittest.cc26 bool Push(void); // Push the string value of next number.
29 bool Pop(void); // Validate string value of next read.
33 int32 read_counter_; // expected value of next read string.
34 int32 write_counter_; // Numerical value to write next string.
60 std::string string; local
61 if (buffer_->Pop(&string)) {
64 EXPECT_STREQ(expected_value.str().c_str(), string.c_str())
73 // Use a small buffer so we can see that we can't write a string as soon as it
79 std::string strin local
102 std::string string; local
129 std::string string; local
[all...]
/external/chromium_org/chrome/test/mini_installer/
H A Dvariable_expander.py8 import string namespace
28 A string representing the product name of the file, or None if the product
94 # This string will be converted to a tuple once injected in eval() through
135 """Expands variables in the given string.
143 str: A string.
146 A new string created by replacing variables with their values.
148 return string.Template(str).substitute(self._variable_mapping)
/external/chromium_org/chrome/third_party/chromevox/
H A DchromeVoxChromeBackgroundScript.js10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a};
25 cvox.ChromeVox.entireDocumentIsHidden=!1;cvox.ChromeVox.storeOn=function(a){a.isStickyPrefOn=cvox.ChromeVox.isStickyPrefOn;cvox.ChromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox.ChromeVox.isStickyPrefOn=a.isStickyPrefOn;cvox.ChromeVox.navigationManager.readFrom(a)};cvox.ChromeVox.isStickyModeOn=function(){return null!==cvox.ChromeVox.stickyOverride?cvox.ChromeVox.stickyOverride:cvox.ChromeVox.isStickyPrefOn};cvox.Cursor=function(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=function(){return new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.prototype.copyFrom=function(a){this.node=a.node;this.index=a.index;this.text=a.text};cvox.Cursor.prototype.equals=function(a){return this.node==a.node&&this.index==a.index&&this.text==a.text};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string
[all...]
H A DchromeVoxChromeOptionsScript.js10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a};
86 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwardError:"no_next_control",backwardError:"no_previous_control"}};cvox.Cursor=function(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=function(){return new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.prototype.copyFrom=function(a){this.node=a.node;this.index=a.index;this.text=a.text};cvox.Cursor.prototype.equals=function(a){return this.node==a.node&&this.index==a.index&&this.text==a.text};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string
[all...]
/external/chromium_org/chrome/third_party/chromevox/third_party/closure-library/closure/goog/string/
H A Dstring.js16 * @fileoverview Utilities for string manipulation.
21 * Namespace for string utilities
23 goog.provide('goog.string');
27 * Does simple python-style string substitution.
29 * @param {string} str The string containing the pattern.
31 * @return {string} A copy of {@code str} in which each occurrence of
34 goog.string.subs = function(str, var_args) {

Completed in 633 milliseconds

1234567891011>>