Home
last modified time | relevance | path

Searched refs:unich (Results 1 – 25 of 34) sorted by relevance

12

/dports/textproc/htmldoc/htmldoc-1.9.13/htmldoc/
H A Diso8859.cxx483 int unich = _htmlUnicode[ch]; in xhtml_entity() local
485 if (unich < 0x80) in xhtml_entity()
488 buf[0] = (uchar)unich; in xhtml_entity()
491 else if (unich < 0x800) in xhtml_entity()
494 buf[0] = (uchar)(0xc0 | (unich >> 6)); in xhtml_entity()
495 buf[1] = (uchar)(0x80 | (unich & 0x3f)); in xhtml_entity()
498 else if (unich < 0x10000) in xhtml_entity()
501 buf[0] = (uchar)(0xe0 | (unich >> 12)); in xhtml_entity()
503 buf[2] = (uchar)(0x80 | (unich & 0x3f)); in xhtml_entity()
509 buf[0] = (uchar)(0xf0 | (unich >> 18)); in xhtml_entity()
[all …]
H A Dmarkdown.cxx368 int unich; /* Unicode character */ in get_text() local
382 unich = 0; in get_text()
394 unich = ((*text & 0x1f) << 6) | (text[1] & 0x3f); in get_text()
408 unich = ((*text & 0x0f) << 12) | ((text[1] & 0x3f) << 6) | (text[2] & 0x3f); in get_text()
419 if (unich) in get_text()
421 uchar ch = htmlMapUnicode(unich); in get_text()
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_multibytecodec_support.py298 unich = unichrs(data[1])
299 if unich == u'\ufffd' or unich in urt_wa:
301 urt_wa[unich] = csetch
303 self._testpoint(csetch, unich)
310 unich = unichr(int(uni, 16))
312 self._testpoint(codech, unich)
318 def _testpoint(self, csetch, unich): argument
319 if (csetch, unich) not in self.pass_enctest:
324 repr(unich), repr(csetch), exc.reason))
325 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python27/Python-2.7.18/Lib/test/
H A Dmultibytecodec_support.py308 unich = unichrs(data[1])
309 if unich == u'\ufffd' or unich in urt_wa:
311 urt_wa[unich] = csetch
313 self._testpoint(csetch, unich)
320 unich = unichr(int(uni, 16))
322 self._testpoint(codech, unich)
328 def _testpoint(self, csetch, unich): argument
329 if (csetch, unich) not in self.pass_enctest:
334 repr(unich), repr(csetch), exc.reason))
335 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python-legacy/Python-2.7.18/Lib/test/
H A Dmultibytecodec_support.py308 unich = unichrs(data[1])
309 if unich == u'\ufffd' or unich in urt_wa:
311 urt_wa[unich] = csetch
313 self._testpoint(csetch, unich)
320 unich = unichr(int(uni, 16))
322 self._testpoint(codech, unich)
328 def _testpoint(self, csetch, unich): argument
329 if (csetch, unich) not in self.pass_enctest:
334 repr(unich), repr(csetch), exc.reason))
335 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/databases/py-sqlite3/Python-3.8.12/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/databases/py-gdbm/Python-3.8.12/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python37/Python-3.7.12/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python-tools/Python-3.8.12/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python39/Python-3.9.9/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python310/Python-3.10.1/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python311/Python-3.11.0a3/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/lang/python38/Python-3.8.12/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Lib/test/
H A Dmultibytecodec_support.py327 unich = unichrs(data[1])
328 if ord(unich) == 0xfffd or unich in urt_wa:
330 urt_wa[unich] = csetch
332 self._testpoint(csetch, unich)
339 unich = chr(int(uni, 16))
341 self._testpoint(codech, unich)
347 def _testpoint(self, csetch, unich): argument
348 if (csetch, unich) not in self.pass_enctest:
349 self.assertEqual(unich.encode(self.encoding), csetch)
350 if (csetch, unich) not in self.pass_dectest:
[all …]
/dports/editors/mined/mined-2015.25/src/
H A Dprompt.c1029 unsigned long unich; local
1096 unich = FUNcmd;
1107 rch = encodedchar (unich);
1110 if (command (unich) == SNL || command (unich) == Popmark) {
1111 unich = '\r';
1112 rch = encodedchar (unich);
1117 unich = '\n';
1124 … (unich == ' ' || unich == '\n' || unich == '\r' || unich == quit_char || unich == '\033')) {
1136 if (unich != quit_char && unich != '\033') {
1239 } else if (unich > ' ' && unich != 0x7F) {
[all …]
H A Dcharprop.c435 is_bullet_or_dash (unich) in is_bullet_or_dash() argument
436 unsigned long unich; in is_bullet_or_dash()
438 char * chname = charname (unich);
439 if (unich == 0xB7) { /* MIDDLE DOT */
442 if (unich == 0x2015) { /* HORIZONTAL BAR / QUOTATION DASH */
H A Dpastebuf.c1196 unsigned long unich; local
1205 unich = unicode (ch);
1207 if (unich != 0x3000 && iswide (unich)
1210 unich = 0x3000;
1211 ch = encodedchar (unich);
1214 if (unich == '\t') {
1222 } else if (iswhitespace (unich)) {
1224 if (iswide (unich)) {
1226 } else if (iscombining (unich)) {
/dports/misc/libpostal/libpostal-1.1-alpha/src/
H A Dtrie_search.c14 int32_t unich = 0; in trie_search_from_index() local
35 len = utf8proc_iterate(ptr, -1, &unich); in trie_search_from_index()
38 if (!(utf8proc_codepoint_valid(unich))) return false; in trie_search_from_index()
40 int cat = utf8proc_category(unich); in trie_search_from_index()
78 len = utf8proc_iterate(ptr, -1, &unich); in trie_search_from_index()
157 if (unich == 0) { in trie_search_from_index()
486 int32_t unich = 0; in trie_search_suffixes_from_index() local
499 char_len = utf8proc_iterate_reversed(ptr, index, &unich); in trie_search_suffixes_from_index()
502 if (!(utf8proc_codepoint_valid(unich))) return NULL_PHRASE; in trie_search_suffixes_from_index()
H A Dstring_utils.c192 int32_t unich; in utf8_reversed_string() local
203 len = utf8proc_iterate(ptr, -1, &unich); in utf8_reversed_string()
205 if (len <= 0 || unich == 0) break; in utf8_reversed_string()
206 if (!(utf8proc_codepoint_valid(unich))) goto error_free_output; in utf8_reversed_string()
952 int32_t unich; in char_array_append_reversed_len() local
959 char_len = utf8proc_iterate_reversed(ptr, idx, &unich); in char_array_append_reversed_len()
960 if (char_len <= 0 || unich == 0) break; in char_array_append_reversed_len()
961 if (!(utf8proc_codepoint_valid(unich))) break; in char_array_append_reversed_len()
/dports/x11/terminal.app/Terminal-0.9.9/
H A DTerminalParser_Linux.m1052 unich=(unich<<6)|(c&0x3f);
1062 unich = (c & 0x1f);
1067 unich = (c & 0x0f);
1072 unich = (c & 0x07);
1077 unich = (c & 0x03);
1082 unich = (c & 0x01);
1093 unich=translate[c];
1153 outp=(char *)&unich;
1161 ch.ch=ntohl(unich);
1200 ch.ch=unich;
H A DTerminalParser_Linux.h30 unsigned int unich; variable
/dports/databases/evolution-data-server/evolution-data-server-3.42.1/src/addressbook/libedata-book/
H A De-book-backend-sexp.c600 gunichar unich; in contains_helper() local
639 …r (next = e_util_unicode_get_utf8 (s2uni, &unich); next && unich; next = e_util_unicode_get_utf8 (… in contains_helper()
640 if (unich == ' ') { in contains_helper()
650 g_string_append_unichar (w, unich); in contains_helper()
655 g_string_append_unichar (w, unich); in contains_helper()
/dports/www/py-nevow/Nevow-0.14.0/nevow/test/
H A Dtest_newflat.py197 unich = u"\N{LATIN CAPITAL LETTER E WITH GRAVE}"
198 self.assertStringEqual(self.flatten(unich), unich.encode('utf-8'))
206 unich = u"\N{LATIN CAPITAL LETTER E WITH GRAVE}"
207 self.assertStringEqual(self.flatten(xml(unich)), unich.encode('utf-8'))
/dports/games/klavaro/klavaro-3.11/src/
H A Dtutor.h122 gboolean tutor_delayed_finger_tip (gpointer unich);
/dports/misc/py-tqdm/tqdm-4.62.3/tests/
H A Dtests_tqdm.py209 unich = unichr
211 unich = chr
220 assert format_meter(231, 1000, 392) == (" 23%|" + unich(0x2588) * 2 + unich(0x258e) +
269 bar_format=r'{l_bar}{bar}|{n_fmt}/{total_fmt}') == " 20%|" + unich(0x258f) + "|20/100"
272 bar_format=r'{l_bar}{bar}|{n_fmt}/{total_fmt}') == " 20%|" + unich(0x258d) + " |20/100"
281 bar_format=r'{bar}') == unich(0x258d) + " "
283 bar_format=r'{l_bar}{bar}') == " 20%|" + unich(0x258d) + " "
285 bar_format=r'{bar}|test') == unich(0x258f) + "|test"

12