HomeSort by relevance Sort by last modified time
    Searched refs:format_string (Results 1 - 25 of 39) sorted by null

1 2

  /external/chromium_org/third_party/libaddressinput/src/cpp/src/util/
string_util.cc 22 std::string DoReplaceStringPlaceholders(const std::string& format_string,
33 formatted.reserve(format_string.length() + sub_length);
35 for (std::string::const_iterator i = format_string.begin();
36 i != format_string.end(); ++i) {
38 if (i + 1 != format_string.end()) {
42 while (i != format_string.end() && '$' == *i) {
49 while (i != format_string.end() && '0' <= *i && *i <= '9') {
string_util.h 22 std::string DoReplaceStringPlaceholders(const std::string& format_string,
  /external/chromium_org/content/public/browser/
devtools_protocol_constants_generator.py 117 def FormatContents(tree, indent, format_string):
123 body += "".join(indent + format_string.format(key, value)
125 body += "".join(FormatNamespace(key, value, indent, format_string)
129 def FormatNamespace(title, tree, indent, format_string):
133 body += FormatContents(tree, indent + " ", format_string)
  /external/chromium_org/ui/base/clipboard/
scoped_clipboard_writer.cc 91 std::string format_string = format.Serialize(); local
92 Clipboard::ObjectMapParam format_parameter(format_string.begin(),
93 format_string.end());
clipboard_android.cc 338 const std::string& format_string) {
339 return FormatType::Deserialize(format_string);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_strptime.py 417 format_string = "%Y %m %d %H %M %S %w %Z"
418 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
419 format_string)
426 format_string = "%Y %H %M %S %w %j %Z"
427 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
428 format_string)
440 format_string = "%Y %m %d %H %S %j %Z"
441 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
442 format_string)
452 format_string = "%%Y %%%s %%w" % directiv
    [all...]
test_str.py 41 format_string = "%.{}f".format(INT_MAX + 1)
43 result = format_string % 2.34
46 format_string = "%{}f".format(sys.maxsize + 1)
48 result = format_string % 2.34
387 format_string = ".{}f".format(sys.maxsize + 1)
389 result = format(2.34, format_string)
392 format_string = "{}f".format(sys.maxsize + 1)
394 result = format(2.34, format_string)
397 format_string = "{{{}:.6f}}".format(sys.maxsize + 1)
399 result = format_string.format(2.34
    [all...]
test_locale.py 155 func=locale.format_string, **format_opts)
245 """General tests on locale.format_string"""
248 self.assertEqual(locale.format_string('%f%%', 1.0), '%f%%' % 1.0)
249 self.assertEqual(locale.format_string('%d %f%%d', (1, 1.0)),
251 self.assertEqual(locale.format_string('%(foo)s %%d', {'foo': 'bar'}),
255 self.assertEqual(locale.format_string('%(foo)s bing.', {'foo': 'bar'}),
257 self.assertEqual(locale.format_string('%(foo)s', {'foo': 'bar'}),
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_strptime.py 417 format_string = "%Y %m %d %H %M %S %w %Z"
418 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
419 format_string)
426 format_string = "%Y %H %M %S %w %j %Z"
427 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
428 format_string)
440 format_string = "%Y %m %d %H %S %j %Z"
441 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
442 format_string)
452 format_string = "%%Y %%%s %%w" % directiv
    [all...]
test_str.py 41 format_string = "%.{}f".format(INT_MAX + 1)
43 result = format_string % 2.34
46 format_string = "%{}f".format(sys.maxsize + 1)
48 result = format_string % 2.34
387 format_string = ".{}f".format(sys.maxsize + 1)
389 result = format(2.34, format_string)
392 format_string = "{}f".format(sys.maxsize + 1)
394 result = format(2.34, format_string)
397 format_string = "{{{}:.6f}}".format(sys.maxsize + 1)
399 result = format_string.format(2.34
    [all...]
test_locale.py 155 func=locale.format_string, **format_opts)
245 """General tests on locale.format_string"""
248 self.assertEqual(locale.format_string('%f%%', 1.0), '%f%%' % 1.0)
249 self.assertEqual(locale.format_string('%d %f%%d', (1, 1.0)),
251 self.assertEqual(locale.format_string('%(foo)s %%d', {'foo': 'bar'}),
255 self.assertEqual(locale.format_string('%(foo)s bing.', {'foo': 'bar'}),
257 self.assertEqual(locale.format_string('%(foo)s', {'foo': 'bar'}),
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
string.py 544 def format(self, format_string, *args, **kwargs):
545 return self.vformat(format_string, args, kwargs)
547 def vformat(self, format_string, args, kwargs):
549 result = self._vformat(format_string, args, kwargs, used_args, 2)
553 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth):
558 self.parse(format_string):
620 def parse(self, format_string):
621 return format_string._formatter_parser()
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
string.py 544 def format(self, format_string, *args, **kwargs):
545 return self.vformat(format_string, args, kwargs)
547 def vformat(self, format_string, args, kwargs):
549 result = self._vformat(format_string, args, kwargs, used_args, 2)
553 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth):
558 self.parse(format_string):
620 def parse(self, format_string):
621 return format_string._formatter_parser()
  /external/lldb/test/settings/
TestSettings.py 119 format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n"
120 self.runCmd("settings set frame-format %s" % format_string, check=False)
125 format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name-with-args}{${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n"
126 self.runCmd("settings set frame-format %s" % format_string)
130 substrs = [format_string])
  /external/chromium_org/base/strings/
string_util.cc 621 OutStringType DoReplaceStringPlaceholders(const FormatStringType& format_string,
632 formatted.reserve(format_string.length() + sub_length);
635 for (typename FormatStringType::const_iterator i = format_string.begin();
636 i != format_string.end(); ++i) {
638 if (i + 1 != format_string.end()) {
642 while (i != format_string.end() && '$' == *i) {
649 while (i != format_string.end() && '0' <= *i && *i <= '9') {
682 string16 ReplaceStringPlaceholders(const string16& format_string,
685 return DoReplaceStringPlaceholders(format_string, subst, offsets);
688 std::string ReplaceStringPlaceholders(const base::StringPiece& format_string,
    [all...]
string_util.h 469 const base::string16& format_string,
474 const base::StringPiece& format_string,
480 const base::string16& format_string,
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/test/
printer.py 163 format_string = '[%d/%d] %s%s'
164 status_line = format_string % (self.num_completed, self.num_tests, test_name, suffix)
175 return format_string % (self.num_completed, self.num_tests, test_name, suffix)
  /external/chromium_org/third_party/WebKit/Source/bindings/scripts/
v8_types.py 242 format_string = '{template}<{inner_type} >'
244 format_string = '{template}<{inner_type}>'
245 return format_string.format(template=template, inner_type=inner_type)
768 format_string = V8_SET_RETURN_VALUE[this_v8_conversion_type]
772 statement = format_string.format(cpp_value=cpp_value, script_wrappable=script_wrappable)
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/
checker.py 596 format_string = "%s(%s): %s [%s] [%d]\n"
598 format_string = "%s:%s: %s [%s] [%d]\n"
600 self.stderr_write(format_string % (file_path,
  /external/chromium_org/tools/telemetry/telemetry/
test_runner.py 333 format_string = ' %%-%ds %%s' % max(len(t.Name()) for t in tests)
340 print >> sys.stderr, format_string % (
349 print >> sys.stderr, format_string % (
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/
printing.py 323 format_string = '[%d/%d] %s%s'
324 status_line = format_string % (self.num_completed, self.num_tests, test_name, suffix)
336 return format_string % (self.num_completed, self.num_tests, test_name, suffix)
  /external/chromium_org/ui/base/l10n/
l10n_util.cc 682 const base::string16& format_string = rb.GetLocalizedString(message_id); local
690 std::string utf8_string = base::UTF16ToUTF8(format_string);
713 format_string, replacements, offsets);
  /external/chromium_org/chromeos/network/
network_event_log.cc 214 void GetFormat(const std::string& format_string,
221 base::StringTokenizer tokens(format_string, ",");
  /external/chromium_org/third_party/mesa/src/src/mapi/glapi/gen/
gl_apitemp.py 78 t_string = t_string + comma + p.format_string()
typeexpr.py 270 def format_string(self): member in class:type_expression

Completed in 1733 milliseconds

1 2