Home
last modified time | relevance | path

Searched refs:to_unicode (Results 1 – 25 of 1490) sorted by relevance

12345678910>>...60

/dports/textproc/p5-Net-IDN-Encode/Net-IDN-Encode-2.500/t/
H A Duts46_to_unicode.t23 is(eval{uts46_to_unicode("fass.de", %p)}, "fass.de", "to_unicode\(\'fass\.de\'\)\ \[data\/IdnaTest\…
24 is(eval{uts46_to_unicode("faß.de", %p)}, "faß.de", "to_unicode\(\'faß\.de\'\)\ \[data\/IdnaTest\.tx…
25 is(eval{uts46_to_unicode("faß.de", %p)}, "faß.de", "to_unicode\(\'faß\.de\'\)\ \[data\/IdnaTest\.tx…
26 is(eval{uts46_to_unicode("Faß.de", %p)}, "faß.de", "to_unicode\(\'Faß\.de\'\)\ \[data\/IdnaTest\.tx…
27 is(eval{uts46_to_unicode("Faß.de", %p)}, "faß.de", "to_unicode\(\'Faß\.de\'\)\ \[data\/IdnaTest\.tx…
72 is(eval{uts46_to_unicode("ab", %p)}, "ab", "to_unicode\(\'ab\'\)\ \[data\/IdnaTest\.txt\:130\]") or…
136 is(eval{uts46_to_unicode("¡", %p)}, "¡", "to_unicode\(\'\¡\'\)\ \[data\/IdnaTest\.txt\:197\]") or (…
273 is(eval{uts46_to_unicode("☕", %p)}, "☕", "to_unicode\(\'\☕\'\)\ \[data\/IdnaTest\.txt\:334\]") or (…
309 is(eval{uts46_to_unicode("夙", %p)}, "夙", "to_unicode\(\'夙\'\)\ \[data\/IdnaTest\.txt\:370\]") or ($…
411 is(eval{uts46_to_unicode("A0", %p)}, "a0", "to_unicode\(\'A0\'\)\ \[data\/IdnaTest\.txt\:472\]") or…
[all …]
/dports/print/hplip/hplip-3.20.6/ui4/
H A Dfabgrouptable.py24 from base.sixext import to_unicode
46 group = to_unicode(item.text())
48 if group == to_unicode('All'):
52 names = to_unicode(e.mimeData().data(to_unicode('text/plain'))).split(to_unicode('|'))
68 items = to_unicode(data.data(to_unicode('text/plain'))).split(to_unicode('|'))
74 return QStringList([to_unicode('text/plain')])
/dports/print/hplip/hplip-3.20.6/ui5/
H A Dfabgrouptable.py24 from base.sixext import to_unicode
49 group = to_unicode(item.text())
51 if group == to_unicode('All'):
55 names = to_unicode(e.mimeData().data(to_unicode('text/plain'))).split(to_unicode('|'))
71 items = to_unicode(data.data(to_unicode('text/plain'))).split(to_unicode('|'))
78 return QStringList([to_unicode('text/plain')])
/dports/devel/py-icalendar/icalendar-4.0.3/src/icalendar/tests/
H A Dtest_unit_parser_tools.py5 from icalendar.parser_tools import to_unicode
13 self.assertEqual(to_unicode(b'spam'), 'spam')
14 self.assertEqual(to_unicode('spam'), 'spam')
15 self.assertEqual(to_unicode('spam'.encode('utf-8')), 'spam')
16 self.assertEqual(to_unicode(b'\xc6\xb5'), '\u01b5')
17 self.assertEqual(to_unicode('\xc6\xb5'.encode('iso-8859-1')),
19 self.assertEqual(to_unicode(b'\xc6\xb5', encoding='ascii'), '\u01b5')
20 self.assertEqual(to_unicode(1), 1)
21 self.assertEqual(to_unicode(None), None)
/dports/devel/py-kitchen/kitchen-1.2.6/kitchen3/tests/
H A Dtest_converters.py54 tools.eq_(converters.to_unicode(self.utf8_spanish), self.u_spanish)
65 tools.assert_raises(UnicodeDecodeError, converters.to_unicode,
69 tools.eq_(converters.to_unicode(5), '5')
70 tools.eq_(converters.to_unicode(5, nonstring='empty'), '')
71 tools.eq_(converters.to_unicode(5, nonstring='passthru'), 5)
72 tools.eq_(converters.to_unicode(5, nonstring='simplerepr'), '5')
73 tools.eq_(converters.to_unicode(5, nonstring='repr'), '5')
76 obj_repr = converters.to_unicode(object, nonstring='simplerepr')
360 tools.eq_(converters.to_unicode(5, non_string='empty'), '')
361 tools.eq_(converters.to_unicode(5, non_string='passthru'), 5)
[all …]
/dports/devel/py-kitchen/kitchen-1.2.6/kitchen2/tests/
H A Dtest_converters.py54 tools.eq_(converters.to_unicode(self.utf8_spanish), self.u_spanish)
65 tools.assert_raises(UnicodeDecodeError, converters.to_unicode,
69 tools.eq_(converters.to_unicode(5), u'5')
70 tools.eq_(converters.to_unicode(5, nonstring='empty'), u'')
71 tools.eq_(converters.to_unicode(5, nonstring='passthru'), 5)
72 tools.eq_(converters.to_unicode(5, nonstring='simplerepr'), u'5')
73 tools.eq_(converters.to_unicode(5, nonstring='repr'), u'5')
76 obj_repr = converters.to_unicode(object, nonstring='simplerepr')
359 tools.eq_(converters.to_unicode(5, non_string='empty'), u'')
360 tools.eq_(converters.to_unicode(5, non_string='passthru'), 5)
[all …]
/dports/devel/py-ddtrace/ddtrace-0.56.1/tests/tracer/
H A Dtest_compat.py17 from ddtrace.internal.compat import to_unicode
27 res = to_unicode(b"test")
33 res = to_unicode(b"\xc3\xbf")
41 res = to_unicode(b"\xc3\xbf".decode("utf-8"))
47 res = to_unicode(u"ÿ")
53 res = to_unicode(bytearray(b"\xc3\xbf"))
61 res = to_unicode(bytearray(b"\xc3\xbf").decode("utf-8"))
67 assert to_unicode(1) == u"1"
68 assert to_unicode(True) == u"True"
69 assert to_unicode(None) == u"None"
[all …]
/dports/textproc/py-gensim/gensim-4.0.1/gensim/parsing/
H A Dpreprocessing.py92 s = utils.to_unicode(s)
117 s = utils.to_unicode(s)
145 s = utils.to_unicode(s)
174 s = utils.to_unicode(s)
199 s = utils.to_unicode(s)
228 s = utils.to_unicode(s)
254 s = utils.to_unicode(s)
279 s = utils.to_unicode(s)
305 text = utils.to_unicode(text)
357 s = utils.to_unicode(s)
/dports/textproc/py-pystache/pystache-0.6.0/pystache/tests/
H A Dtest_loader.py52 to_unicode = lambda x: x function
53 loader = Loader(to_unicode=to_unicode)
54 self.assertEqual(loader.to_unicode, to_unicode)
58 self.assertRaises(TypeError, loader.to_unicode, "abc")
66 self.assertRaises(UnicodeDecodeError, loader.to_unicode, nonascii)
70 self.assertString(loader.to_unicode(nonascii), 'abcd')
74 self.assertString(loader.to_unicode(nonascii), 'abcdé')
125 def to_unicode(s, encoding=None): function
130 loader.to_unicode = to_unicode
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/python/pystache/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/python/pystache/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/www/firefox-legacy/firefox-52.8.0esr/python/pystache/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/www/firefox-esr/firefox-91.8.0/third_party/python/pystache/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/pystache/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
28 return to_unicode
40 def __init__(self, file_encoding=None, extension=None, to_unicode=None, argument
77 if to_unicode is None:
78 to_unicode = _make_to_unicode()
84 self.to_unicode = to_unicode
110 return self.to_unicode(s, encoding)
/dports/textproc/py-pystache/pystache-0.6.0/pystache/
H A Dloader.py20 def to_unicode(s, encoding=None): function
29 return to_unicode
45 to_unicode=None, argument
83 if to_unicode is None:
84 to_unicode = _make_to_unicode()
90 self.to_unicode = to_unicode
116 return self.to_unicode(s, encoding)
/dports/www/firefox/firefox-99.0/third_party/rust/idna/tests/
H A Dunit.rs48 assert_matches!(codec.to_unicode("Bloß.de", &mut out), Ok(())); in test_examples()
52 assert_matches!(codec.to_unicode("xn--blo-7ka.de", &mut out), Ok(())); in test_examples()
56 assert_matches!(codec.to_unicode("u\u{308}.com", &mut out), Ok(())); in test_examples()
60 assert_matches!(codec.to_unicode("xn--tda.com", &mut out), Ok(())); in test_examples()
64 assert_matches!(codec.to_unicode("xn--u-ccb.com", &mut out), Err(_)); in test_examples()
67 assert_matches!(codec.to_unicode("a⒈com", &mut out), Err(_)); in test_examples()
70 assert_matches!(codec.to_unicode("xn--a-ecp.ru", &mut out), Err(_)); in test_examples()
73 assert_matches!(codec.to_unicode("xn--0.pt", &mut out), Err(_)); in test_examples()
76 assert_matches!(codec.to_unicode("日本語。JP", &mut out), Ok(())); in test_examples()
80 assert_matches!(codec.to_unicode("☕.us", &mut out), Ok(())); in test_examples()
/dports/devel/py-icalendar/icalendar-4.0.3/src/icalendar/
H A Dcaselessdict.py3 from icalendar.parser_tools import to_unicode
35 key_upper = to_unicode(key).upper()
41 key = to_unicode(key)
45 key = to_unicode(key)
49 key = to_unicode(key)
53 key = to_unicode(key)
57 key = to_unicode(key)
61 key = to_unicode(key)
65 key = to_unicode(key)
72 key = to_unicode(key)
/dports/www/py-feedgenerator/feedgenerator-2.0.0/feedgenerator/django/utils/
H A Dfeedgenerator.py90 'title': to_unicode(title),
92 'description': to_unicode(description),
93 'language': to_unicode(language),
95 'author_name': to_unicode(author_name),
97 'subtitle': to_unicode(subtitle),
124 'title': to_unicode(title),
126 'description': to_unicode(description),
127 'content': to_unicode(content),
129 'author_name': to_unicode(author_name),
133 'comments': to_unicode(comments),
[all …]
/dports/www/rearx/rearx-0.1.4/cargo-crates/idna-0.2.2/tests/
H A Dunit.rs48 assert_matches!(codec.to_unicode("Bloß.de", &mut out), Ok(())); in test_examples()
52 assert_matches!(codec.to_unicode("xn--blo-7ka.de", &mut out), Ok(())); in test_examples()
56 assert_matches!(codec.to_unicode("u\u{308}.com", &mut out), Ok(())); in test_examples()
60 assert_matches!(codec.to_unicode("xn--tda.com", &mut out), Ok(())); in test_examples()
64 assert_matches!(codec.to_unicode("xn--u-ccb.com", &mut out), Err(_)); in test_examples()
67 assert_matches!(codec.to_unicode("a⒈com", &mut out), Err(_)); in test_examples()
70 assert_matches!(codec.to_unicode("xn--a-ecp.ru", &mut out), Err(_)); in test_examples()
73 assert_matches!(codec.to_unicode("xn--0.pt", &mut out), Err(_)); in test_examples()
76 assert_matches!(codec.to_unicode("日本語。JP", &mut out), Ok(())); in test_examples()
80 assert_matches!(codec.to_unicode("☕.us", &mut out), Ok(())); in test_examples()
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/idna-0.2.2/tests/
H A Dunit.rs48 assert_matches!(codec.to_unicode("Bloß.de", &mut out), Ok(())); in test_examples()
52 assert_matches!(codec.to_unicode("xn--blo-7ka.de", &mut out), Ok(())); in test_examples()
56 assert_matches!(codec.to_unicode("u\u{308}.com", &mut out), Ok(())); in test_examples()
60 assert_matches!(codec.to_unicode("xn--tda.com", &mut out), Ok(())); in test_examples()
64 assert_matches!(codec.to_unicode("xn--u-ccb.com", &mut out), Err(_)); in test_examples()
67 assert_matches!(codec.to_unicode("a⒈com", &mut out), Err(_)); in test_examples()
70 assert_matches!(codec.to_unicode("xn--a-ecp.ru", &mut out), Err(_)); in test_examples()
73 assert_matches!(codec.to_unicode("xn--0.pt", &mut out), Err(_)); in test_examples()
76 assert_matches!(codec.to_unicode("日本語。JP", &mut out), Ok(())); in test_examples()
80 assert_matches!(codec.to_unicode("☕.us", &mut out), Ok(())); in test_examples()
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/idna-0.2.2/tests/
H A Dunit.rs48 assert_matches!(codec.to_unicode("Bloß.de", &mut out), Ok(())); in test_examples()
52 assert_matches!(codec.to_unicode("xn--blo-7ka.de", &mut out), Ok(())); in test_examples()
56 assert_matches!(codec.to_unicode("u\u{308}.com", &mut out), Ok(())); in test_examples()
60 assert_matches!(codec.to_unicode("xn--tda.com", &mut out), Ok(())); in test_examples()
64 assert_matches!(codec.to_unicode("xn--u-ccb.com", &mut out), Err(_)); in test_examples()
67 assert_matches!(codec.to_unicode("a⒈com", &mut out), Err(_)); in test_examples()
70 assert_matches!(codec.to_unicode("xn--a-ecp.ru", &mut out), Err(_)); in test_examples()
73 assert_matches!(codec.to_unicode("xn--0.pt", &mut out), Err(_)); in test_examples()
76 assert_matches!(codec.to_unicode("日本語。JP", &mut out), Ok(())); in test_examples()
80 assert_matches!(codec.to_unicode("☕.us", &mut out), Ok(())); in test_examples()
/dports/sysutils/exa/exa-0.10.1/cargo-crates/idna-0.2.2/tests/
H A Dunit.rs48 assert_matches!(codec.to_unicode("Bloß.de", &mut out), Ok(()));
52 assert_matches!(codec.to_unicode("xn--blo-7ka.de", &mut out), Ok(()));
56 assert_matches!(codec.to_unicode("u\u{308}.com", &mut out), Ok(()));
60 assert_matches!(codec.to_unicode("xn--tda.com", &mut out), Ok(()));
64 assert_matches!(codec.to_unicode("xn--u-ccb.com", &mut out), Err(_));
67 assert_matches!(codec.to_unicode("a⒈com", &mut out), Err(_));
70 assert_matches!(codec.to_unicode("xn--a-ecp.ru", &mut out), Err(_));
73 assert_matches!(codec.to_unicode("xn--0.pt", &mut out), Err(_));
76 assert_matches!(codec.to_unicode("日本語。JP", &mut out), Ok(()));
80 assert_matches!(codec.to_unicode("☕.us", &mut out), Ok(()));
/dports/www/py-w3lib/w3lib-1.21.0/w3lib/
H A Dhtml.py11 from w3lib.util import to_bytes, to_unicode
97 return _ent_re.sub(convert_entity, to_unicode(text, encoding))
100 return bool(_ent_re.search(to_unicode(text, encoding)))
122 return _tag_re.sub(token, to_unicode(text, encoding))
136 text = to_unicode(text, encoding)
205 return retags.sub(remove_tag, to_unicode(text, encoding))
221 text = to_unicode(text, encoding)
241 text = to_unicode(text, encoding)
267 text = to_unicode(text, encoding)
286 text = to_unicode(text, encoding)
[all …]

12345678910>>...60