Home
last modified time | relevance | path

Searched refs:replace (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/device/linaro/bootloader/edk2/BeagleBoardPkg/Tools/
Dmakefile13 all: GenerateImage replace
18 replace: replace.c target
19 $(CC) $(CCFLAGS) $(LDFLAGS) -o replace.exe replace.c
22 del GenerateImage.exe generate_image.obj replace.exe replace.obj
/device/linaro/bootloader/OpenPlatformPkg/Platforms/TexasInstruments/BeagleBoard/Tools/
Dmakefile13 all: GenerateImage replace
18 replace: replace.c target
19 $(CC) $(CCFLAGS) $(LDFLAGS) -o replace.exe replace.c
22 del GenerateImage.exe generate_image.obj replace.exe replace.obj
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_strop.py58 replace = strop.replace
59 self.assertTrue(replace("one!two!three!", '!', '@', 1)
61 self.assertTrue(replace("one!two!three!", '!', '@', 2)
63 self.assertTrue(replace("one!two!three!", '!', '@', 3)
65 self.assertTrue(replace("one!two!three!", '!', '@', 4)
72 self.assertTrue(replace("one!two!three!", '!', '@', 0)
74 self.assertTrue(replace("one!two!three!", '!', '@')
76 self.assertTrue(replace("one!two!three!", 'x', '@')
78 self.assertTrue(replace("one!two!three!", 'x', '@', 2)
Dtest_datetime.py1069 self.assertEqual(base, base.replace())
1078 got = base.replace(**{name: newval})
1084 self.assertRaises(ValueError, base.replace, year=2001)
1271 def replace(self, *args): member in TestDateTime.test_strftime_with_bad_tzname_replace.MyTzInfo.tzname.MyStr
1614 self.assertEqual(base, base.replace())
1627 got = base.replace(**{name: newval})
1633 self.assertRaises(ValueError, base.replace, year=2001)
1938 self.assertEqual(base, base.replace())
1948 got = base.replace(**{name: newval})
1954 self.assertRaises(ValueError, base.replace, hour=24)
[all …]
Dinspect_fodder2.py8 def replace(func): function
20 @replace
Dtest_strftime.py25 new_text = new_text.replace(re.escape(ampm), ampm)
26 new_text = new_text.replace('\%', '%')
27 new_text = new_text.replace('\:', ':')
28 new_text = new_text.replace('\?', '?')
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_imports.py120 self.replace = {}
127 import_mod.replace(Name(new_name, prefix=import_mod.prefix))
131 self.replace[mod_name] = new_name
143 new_name = self.replace.get(bare_name.value)
145 bare_name.replace(Name(new_name, prefix=bare_name.prefix))
Dfix_renames.py23 for module, replace in MAPPING.items():
24 for old_attr, new_attr in replace.items():
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
Dfix_next.py55 attr.replace(Name(u"__next__", prefix=attr.prefix))
59 node.replace(Call(Name(u"next", prefix=node.prefix), base))
62 name.replace(n)
72 attr.replace(Name(u"__next__"))
Dfix_xreadlines.py23 no_call.replace(Name(u"__iter__", prefix=no_call.prefix))
25 node.replace([x.clone() for x in results["call"]])
Dfix_itertools.py40 func.parent.replace(func)
43 func.replace(Name(func.value[1:], prefix=prefix))
Dfix_idioms.py114 one.replace(Name(u"True", prefix=one.prefix))
123 list_call.replace(Name(u"sorted", prefix=list_call.prefix))
127 simple_expr.replace(Call(Name(u"sorted"), [new],
Dfix_tuple_params.py74 tuple_arg.replace(n)
119 args.replace(inner)
127 args.replace(new_param.clone())
134 n.replace(new)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/PomAdapter/
DDecPomAlignment.py387 IncludePath = IncludePath.replace('\\', '/')
761 ReplaceValue = ReplaceValue.replace('EQ', 'x ==')
762 ReplaceValue = ReplaceValue.replace('LT', 'x <')
763 ReplaceValue = ReplaceValue.replace('LE', 'x <=')
764 ReplaceValue = ReplaceValue.replace('GT', 'x >')
765 ReplaceValue = ReplaceValue.replace('GE', 'x >=')
766 ReplaceValue = ReplaceValue.replace('XOR', 'x ^')
768 ReplaceValue = ReplaceValue.replace('EQ', '==')
769 ReplaceValue = ReplaceValue.replace('NE', '!=')
770 ReplaceValue = ReplaceValue.replace('LT', '<')
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
DCommentParsing.py186 Comment = Comment.replace(SkipTag, '', 1)
255 Comment = Comment.replace(MatchedStr, MacroReplaceDict[Macro])
270 ValidRange = Comment.replace(TAB_PCD_VALIDRANGE, "", 1).strip()
306 ValidValueExpr = Comment.replace(TAB_PCD_VALIDLIST, "", 1).strip()
309 … ValidValue = Comment.replace(TAB_PCD_VALIDLIST, "", 1).replace(TAB_COMMA_SPLIT, TAB_SPACE_SPLIT)
337 Expression = Comment.replace(TAB_PCD_EXPRESSION, "", 1).strip()
360 PromptStr = Comment.replace(TAB_PCD_PROMPT, "", 1).strip()
486 Comment = Comment.replace('##', '#').replace(' ', ' ').replace(' ', '#').strip('# ')
560 HelpText = HelpText.replace(Token, '')
565 HelpText = HelpText.replace(Token, '')
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/wsgiref/
Dheaders.py22 value = value.replace('\\', '\\\\').replace('"', r'\"')
166 parts.append(k.replace('_', '-'))
168 parts.append(_formatparam(k.replace('_', '-'), v))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/
Dsaxutils.py27 s = s.replace(key, value)
39 data = data.replace("&", "&amp;")
40 data = data.replace(">", "&gt;")
41 data = data.replace("<", "&lt;")
53 data = data.replace("&lt;", "<")
54 data = data.replace("&gt;", ">")
58 return data.replace("&amp;", "&")
76 data = '"%s"' % data.replace('"', "&quot;")
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dlocale.py285 s = s.replace('<', sign)
287 s = s.replace('>', sign)
293 return s.replace('<', '').replace('>', '')
304 string = string.replace(ts, '')
308 string = string.replace(dd, '.')
354 fullname = fullname.replace(':', '.')
363 norm_encoding = encoding.replace('-', '')
364 norm_encoding = norm_encoding.replace('_', '')
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dgoogle.py13 arg = arg.replace('+', '%2B')
16 arg = arg.replace(' ', '+')
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/
DUniClassObject.py407 Line = Line.replace(u'\\\\', BACK_SLASH_PLACEHOLDER)
417 Line = Line.replace(u'/langdef', u'#langdef')
418 Line = Line.replace(u'/string', u'#string')
419 Line = Line.replace(u'/language', u'#language')
420 Line = Line.replace(u'/include', u'#include')
422 Line = Line.replace(UNICODE_WIDE_CHAR, WIDE_CHAR)
423 Line = Line.replace(UNICODE_NARROW_CHAR, NARROW_CHAR)
424 Line = Line.replace(UNICODE_NON_BREAKING_CHAR, NON_BREAKING_CHAR)
426 Line = Line.replace(u'\\r\\n', CR + LF)
427 Line = Line.replace(u'\\n', CR + LF)
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/
DRmPkg.py55 Input = Input.replace('\r', '').replace('\n', '')
249 Input = Input.replace('\r', '').replace('\n', '')
261 Input = Input.replace('\r', '').replace('\n', '')
DInstallPkg.py81 Input = Input.replace('\r', '').replace('\n', '')
84 Input = Input.replace('\r', '').replace('\n', '')
107 Input = Input.replace('\r', '').replace('\n', '')
110 Input = Input.replace('\r', '').replace('\n', '')
124 Input = Input.replace('\r', '').replace('\n', '')
127 Input = Input.replace('\r', '').replace('\n', '')
276 Module.SetModulePath(Module.GetModulePath().replace(Path, NewModulePath, 1))
496 Input = Input.replace('\r', '').replace('\n', '')
599 Input = Input.replace('\r', '').replace('\n', '')
740 ConvertPath(FileName.replace(FromPath, NewPath, 1))))
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dlocale.py291 s = s.replace('<', sign)
293 s = s.replace('>', sign)
299 return s.replace('<', '').replace('>', '')
310 string = string.replace(ts, '')
314 string = string.replace(dd, '.')
385 code = code.replace(':', '.')
399 norm_encoding = encoding.replace('-', '')
400 norm_encoding = norm_encoding.replace('_', '')
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DParser.py277 IfLine = IfLine.replace("\"", '')
278 IfLine = IfLine.replace("(", '')
279 IfLine = IfLine.replace(")", '')
333 Line = Line.replace("&&", "and")
334 Line = Line.replace("||", "or")
442 …Variable = Record[0].replace('PeiServicesInstallPpi', '').replace('(', '').replace(')', '').replac…
514 Key = Key[Key.rfind(' ') : ].strip().replace('&', '')
516 List = GetSplitValueList(Value.replace('\n', ''), TAB_COMMA_SPLIT)
735 … return Parameter[1:].replace('{', '').replace('}', '').replace('\r', '').replace('\n', '').strip()
839 newGuid = newGuid.replace(old, new)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/sax/
Dsaxutils.py20 s = s.replace(key, value)
32 data = data.replace("&", "&amp;")
33 data = data.replace(">", "&gt;")
34 data = data.replace("<", "&lt;")
46 data = data.replace("&lt;", "<")
47 data = data.replace("&gt;", ">")
51 return data.replace("&amp;", "&")
69 data = '"%s"' % data.replace('"', "&quot;")

12345678910>>...13