Home
last modified time | relevance | path

Searched refs:markup (Results 1 – 25 of 124) sorted by relevance

12345

/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/
Dtesting.py26 def soup(self, markup, **kwargs): argument
29 return BeautifulSoup(markup, builder=builder, **kwargs)
31 def document_for(self, markup): argument
36 return self.default_builder.test_fragment_to_document(markup)
74 markup = doctype + '\n<p>foo</p>'
75 soup = self.soup(markup)
106 markup = b"""<?xml version="1.0" encoding="utf-8"?>
112 soup = self.soup(markup)
115 markup.replace(b"\n", b""))
160 markup = "<p>foo<!--foobar-->baz</p>"
[all …]
D__init__.py80 def __init__(self, markup="", features=None, builder=None, argument
160 if hasattr(markup, 'read'): # It's a file-type object.
161 markup = markup.read()
162 elif len(markup) <= 256:
167 if (isinstance(markup, unicode)
169 possible_filename = markup.encode("utf8")
171 possible_filename = markup
182 … markup. You should probably open this file and pass the filehandle into Beautiful Soup.' % markup)
183 if markup[:5] == "http:" or markup[:6] == "https:":
186 if ((isinstance(markup, bytes) and not b' ' in markup)
[all …]
Ddammit.py215 def __init__(self, markup, override_encodings=None, is_html=False): argument
222 self.markup, self.sniffed_encoding = self.strip_byte_order_mark(markup)
249 self.markup, self.is_html)
256 self.chardet_encoding = chardet_dammit(self.markup)
289 def find_declared_encoding(cls, markup, is_html=False, search_entire_document=False): argument
298 xml_endpos = html_endpos = len(markup)
301 html_endpos = max(2048, int(len(markup) * 0.05))
304 declared_encoding_match = xml_encoding_re.search(markup, endpos=xml_endpos)
306 declared_encoding_match = html_meta_re.search(markup, endpos=html_endpos)
333 def __init__(self, markup, override_encodings=[], argument
[all …]
Delement.py1486 markup = None
1488 markup = markup_name
1489 markup_attrs = markup
1496 or (markup and self._matches(markup, self.name))
1497 or (not markup and self._matches(markup_name, self.name))):
1516 if markup:
1517 found = markup
1525 def search(self, markup): argument
1530 if hasattr(markup, '__iter__') and not isinstance(markup, (Tag, basestring)):
1531 for element in markup:
[all …]
/external/llvm/lib/Target/ARM/InstPrinter/
DARMInstPrinter.cpp66 OS << markup("<reg:") << getRegisterName(RegNo) << markup(">"); in printRegName()
156 O << ", " << markup("<imm:") << "#" in printInst()
157 << translateShiftImm(ARM_AM::getSORegOffset(MO2.getImm())) << markup(">"); in printInst()
326 O << markup("<imm:") << '#' << formatImm(Op.getImm()) << markup(">"); in printOperand()
368 O << markup("<mem:") << "[pc, "; in printThumbLdrLabelOperand()
377 O << markup("<imm:") << "#-" << formatImm(-OffImm) << markup(">"); in printThumbLdrLabelOperand()
379 O << markup("<imm:") << "#" << formatImm(OffImm) << markup(">"); in printThumbLdrLabelOperand()
381 O << "]" << markup(">"); in printThumbLdrLabelOperand()
433 O << markup("<mem:") << "["; in printAM2PreOrOffsetIndexOp()
438 O << ", " << markup("<imm:") << "#" in printAM2PreOrOffsetIndexOp()
[all …]
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/tests/
Dtest_html5lib.py30 markup = "<p>A <b>bold</b> statement.</p>"
32 soup = self.soup(markup, parse_only=strainer)
34 soup.decode(), self.document_for(markup))
42 markup = ('<table id="1">'
50 markup,
61 markup = '''<?xml version="1.0" encoding="utf-8"?>
70 soup = self.soup(markup)
75 markup = '<p><em>foo</p>\n<p>bar<a></a></em></p>'
76 soup = self.soup(markup)
82 markup = '<p><em>foo</p>\n<p>bar<a></a></em></p>\n'
[all …]
Dtest_soup.py106 markup = "No<b>Yes</b><a>No<b>Yes <c>Yes</c></b>"
108 soup = self.soup(markup, parse_only=strainer)
129 self.assertEqual(self.sub.substitute_html(dammit.markup),
238 markup = u'<div><a \N{SNOWMAN}="snowman"></a></div>'
239 self.assertEqual(self.soup(markup).div.encode("utf8"), markup.encode("utf8"))
245 markup = u"I'm already Unicode! \N{SNOWMAN}"
246 dammit = UnicodeDammit(markup)
247 self.assertEqual(dammit.unicode_markup, markup)
250 markup = b"<foo>\x91\x92\x93\x94</foo>"
251 dammit = UnicodeDammit(markup)
[all …]
Dtest_lxml.py70 markup = b"""<?xml version="1.0" encoding="utf-8"?>
76 soup = self.soup(markup)
79 markup.replace(b'\n', b'').replace(
Dtest_tree.py571 markup = '''<html>
585 markup = re.compile("\n\s*").sub("", markup)
586 self.tree = self.soup(markup)
1149 markup = '<b a="1" z="5" m="3" f="2" y="4"></b>'
1150 self.assertSoupEquals(markup, '<b a="1" f="2" m="3" y="4" z="5"></b>')
1300 markup = u"<b>&lt;&lt;Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!&gt;&gt;</b>"
1301 soup = self.soup(markup)
1310 markup = u"<b>&lt;&lt;Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!&gt;&gt;</b>"
1311 soup = self.soup(markup)
1318 markup = u"<b>&lt;&lt;Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!&gt;&gt;</b>"
[all …]
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/builder/
D_lxml.py72 def prepare_markup(self, markup, user_specified_encoding=None, argument
81 if isinstance(markup, unicode):
84 yield markup, None, document_declared_encoding, False
86 if isinstance(markup, unicode):
89 yield (markup.encode("utf8"), "utf8",
98 detector = EncodingDetector(markup, try_encodings, is_html)
100 yield (detector.markup, encoding, document_declared_encoding, False)
102 def feed(self, markup): argument
103 if isinstance(markup, bytes):
104 markup = BytesIO(markup)
[all …]
D_htmlparser.py138 def prepare_markup(self, markup, user_specified_encoding=None, argument
145 if isinstance(markup, unicode):
146 yield (markup, None, None, False)
150 dammit = UnicodeDammit(markup, try_encodings, is_html=True)
151 yield (dammit.markup, dammit.original_encoding,
155 def feed(self, markup): argument
160 parser.feed(markup)
D__init__.py122 def feed(self, markup): argument
125 def prepare_markup(self, markup, user_specified_encoding=None, argument
127 return markup, None, None, False
178 def feed(self, markup): argument
D_html5lib.py27 def prepare_markup(self, markup, user_specified_encoding): argument
30 yield (markup, None, None, False)
33 def feed(self, markup): argument
37 doc = parser.parse(markup, encoding=self.user_specified_encoding)
40 if isinstance(markup, unicode):
/external/llvm/lib/Target/X86/InstPrinter/
DX86ATTInstPrinter.cpp37 OS << markup("<reg:") << '%' << getRegisterName(RegNo) << markup(">"); in printRegName()
169 O << markup("<imm:") << '$' << formatImm((int64_t)Op.getImm()) in printOperand()
170 << markup(">"); in printOperand()
181 O << markup("<imm:") << '$'; in printOperand()
183 O << markup(">"); in printOperand()
194 O << markup("<mem:"); in printMemReference()
221 O << ',' << markup("<imm:") << ScaleVal // never printed in hex. in printMemReference()
222 << markup(">"); in printMemReference()
228 O << markup(">"); in printMemReference()
235 O << markup("<mem:"); in printSrcIdx()
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/util/
DPySourceColor.py687 markup = 'html'
721 markup = str(a)
749 path2stdout(input, colors=colorscheme, markup=markup,
761 markup=markup, header=header,
766 markup=markup, header=header, footer=footer,
776 show=show, markup=markup,linenumbers=linenumbers)
780 show=show, markup=markup, quiet=quiet, header=header,
799 markup='css', quiet=quiet)
802 markup='css', quiet=quiet)
805 markup='css', quiet=quiet, header='', footer='',
[all …]
/external/autotest/site_utils/rpm_control_system/
DBeautifulSoup.py915 markup = None
917 markup = markupName
918 markupAttrs = markup
924 or (markup and self._matches(markup, self.name)) \
925 or (not markup and self._matches(markupName, self.name)):
944 if markup:
945 found = markup
950 def search(self, markup): argument
955 if hasattr(markup, "__iter__") \
956 and not isinstance(markup, Tag):
[all …]
/external/chromium-trace/catapult/third_party/beautifulsoup4/scripts/
Ddemonstrate_parser_differences.py35 def __init__(self, markup): argument
37 self.markup = markup
44 soup = BeautifulSoup(self.markup, parser)
45 if markup.startswith("<div>"):
60 print "%s: %s" % ("Markup".rjust(13), self.markup.encode("utf8"))
78 for markup in input_file:
79 demo = Demonstration(markup.decode("utf8").strip().replace("\\n", "\n"))
/external/owasp/sanitizer/src/tests/org/owasp/html/
DHtmlLexerTest.java148 private static void assertTokens(String markup, String... golden) { in assertTokens() argument
149 HtmlLexer lexer = new HtmlLexer(markup); in assertTokens()
153 actual.add(t.type + ": " + markup.substring(t.start, t.end)); in assertTokens()
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/data/tree_construction/
Dtests4.dat18 textarea content with <em>pseudo</em> <foo>markup
23 | "textarea content with <em>pseudo</em> <foo>markup"
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DScientificNumberFormatterTest.java25 ScientificNumberFormatter markup = ScientificNumberFormatter.getMarkupInstance( in TestBasic() local
31 markup.format(1.23456e-78)); in TestBasic()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DScientificNumberFormatterTest.java29 ScientificNumberFormatter markup = ScientificNumberFormatter.getMarkupInstance( in TestBasic() local
35 markup.format(1.23456e-78)); in TestBasic()
/external/llvm/lib/MC/
DMCInstPrinter.cpp55 StringRef MCInstPrinter::markup(StringRef s) const { in markup() function in MCInstPrinter
61 StringRef MCInstPrinter::markup(StringRef a, StringRef b) const { in markup() function in MCInstPrinter
/external/pcre/dist/
D132html209 my($markup) = $1;
214 print TEMP "$_$markup\n";
/external/llvm/include/llvm/MC/
DMCInstPrinter.h86 StringRef markup(StringRef s) const;
87 StringRef markup(StringRef a, StringRef b) const;
/external/llvm/docs/
DMarkedUpDisassembly.rst21 The markup is simple enough in syntax to be robust even in the case of version
44 Annoated assembly display will supply contextual markup to help clients more
45 efficiently implement things like pretty printers. Most markup will be target

12345