Home
last modified time | relevance | path

Searched refs:text_utf8 (Results 1 – 25 of 74) sorted by relevance

123

/dports/games/hex-a-hop/hex-a-hop-1.1.0/src/
H A Dtext.cpp127 SDLPango_SetText(context, text_utf8.c_str(), -1); in SDLPangoTextHeight()
138 SDLPango_SetText(context, text_utf8.c_str(), -1); in SDLPangoTextWidth()
147 if (text_utf8.size() == 0 || (text_utf8.size() == 1 && text_utf8[0]==127)) in Print_Pango()
174 if (text_utf8.size() == 0 || (text_utf8.size() == 1 && text_utf8[0]==127)) in Print_Pango_Aligned()
179 int real_width = SDLPangoTextWidth(text_utf8); in Print_Pango_Aligned()
233 int TextWidth(const std::string &text_utf8) in TextWidth() argument
245 char* tmp = strdup(text_utf8.c_str()); in TextHeight()
353 int TextWidth(const std::string &text_utf8) in TextWidth() argument
355 return SDLPangoTextWidth(text_utf8); in TextWidth()
360 return SDLPangoTextHeight(text_utf8, width); in TextHeight()
[all …]
H A Dtext.h8 int TextWidth(const std::string &text_utf8);
9 int TextHeight(const std::string &text_utf8, int width);
14 void ConvertToUTF8(const std::string &text_locally_encoded, char *text_utf8, size_t text_utf8_lengt…
/dports/textproc/py-latexcodec/latexcodec-2.0.1/test/
H A Dtest_latex_codec.py54 def decode(self, text_utf8, text_latex, inputenc=None): argument
58 self.assertEqual((decoded, n), (text_utf8, len(text_latex)))
248 def decode(self, text_utf8, text_latex, inputenc=None): argument
252 self.assertEqual(text_utf8, reader.read())
267 def decode(self, text_utf8, text_latex, inputenc=None): argument
273 self.assertEqual(text_utf8, u''.join(decoded_parts))
284 self.assertEqual((encoded, n), (text_latex, len(text_utf8)))
454 writer.write(text_utf8)
467 for text_utf8_part, final in split_input(text_utf8))
473 def decode(self, text_utf8, text_latex, inputenc=None): argument
[all …]
/dports/japanese/p5-Unicode-Japanese/Unicode-Japanese-0.49/c_lib/
H A Dsample.c10 int test_conv(const char* text_utf8, uj_charcode_t ocode) in test_conv() argument
18 in_bytes = strlen(text_utf8); in test_conv()
19 uj = uj_new((uj_uint8*)text_utf8, in_bytes, icode); in test_conv()
42 const char* text_utf8 = "テスト"; in main() local
44 r = test_conv(text_utf8, ujc_sjis); in main()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/components/url_formatter/
H A Durl_fixer.cc49 const std::string& text_utf8, in UTF8ComponentToUTF16Component() argument
55 text_utf8.substr(0, component_utf8.begin); in UTF8ComponentToUTF16Component()
57 text_utf8.substr(component_utf8.begin, component_utf8.len); in UTF8ComponentToUTF16Component()
66 void UTF8PartsToUTF16Parts(const std::string& text_utf8, in UTF8PartsToUTF16Parts() argument
69 if (base::IsStringASCII(text_utf8)) { in UTF8PartsToUTF16Parts()
530 std::string text_utf8 = base::UTF16ToUTF8(text); in SegmentURL() local
532 std::string scheme_utf8 = SegmentURL(text_utf8, &parts_utf8); in SegmentURL()
533 UTF8PartsToUTF16Parts(text_utf8, parts_utf8, parts); in SegmentURL()
679 std::string text_utf8 = base::WideToUTF8(text.value()); in FixupRelativeFile() local
681 std::string text_utf8 = text.value(); in FixupRelativeFile() local
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/url_formatter/
H A Durl_fixer.cc49 const std::string& text_utf8, in UTF8ComponentToUTF16Component() argument
55 text_utf8.substr(0, component_utf8.begin); in UTF8ComponentToUTF16Component()
57 text_utf8.substr(component_utf8.begin, component_utf8.len); in UTF8ComponentToUTF16Component()
66 void UTF8PartsToUTF16Parts(const std::string& text_utf8, in UTF8PartsToUTF16Parts() argument
69 if (base::IsStringASCII(text_utf8)) { in UTF8PartsToUTF16Parts()
533 std::string text_utf8 = base::UTF16ToUTF8(text); in SegmentURL() local
535 std::string scheme_utf8 = SegmentURL(text_utf8, &parts_utf8); in SegmentURL()
536 UTF8PartsToUTF16Parts(text_utf8, parts_utf8, parts); in SegmentURL()
682 std::string text_utf8 = base::WideToUTF8(text.value()); in FixupRelativeFile() local
684 std::string text_utf8 = text.value(); in FixupRelativeFile() local
[all …]
/dports/lang/perl5.30/perl-5.30.3/t/op/
H A Dindex.t99 my $text_utf8 = $text;
100 utf8::upgrade($text_utf8);
108 is (index($text_utf8, $search), 5);
109 is (rindex($text_utf8, $search), 18);
110 is (index($text_utf8, $search_utf8), 5);
111 is (rindex($text_utf8, $search_utf8), 18);
113 my $text_octets = $text_utf8;
123 is (index($text_utf8, $search_octets), -1);
124 is (rindex($text_utf8, $search_octets), -1);
/dports/lang/perl5.34/perl-5.34.0/t/op/
H A Dindex.t99 my $text_utf8 = $text;
100 utf8::upgrade($text_utf8);
108 is (index($text_utf8, $search), 5);
109 is (rindex($text_utf8, $search), 18);
110 is (index($text_utf8, $search_utf8), 5);
111 is (rindex($text_utf8, $search_utf8), 18);
113 my $text_octets = $text_utf8;
123 is (index($text_utf8, $search_octets), -1);
124 is (rindex($text_utf8, $search_octets), -1);
/dports/lang/perl5.32/perl-5.32.1/t/op/
H A Dindex.t99 my $text_utf8 = $text;
100 utf8::upgrade($text_utf8);
108 is (index($text_utf8, $search), 5);
109 is (rindex($text_utf8, $search), 18);
110 is (index($text_utf8, $search_utf8), 5);
111 is (rindex($text_utf8, $search_utf8), 18);
113 my $text_octets = $text_utf8;
123 is (index($text_utf8, $search_octets), -1);
124 is (rindex($text_utf8, $search_octets), -1);
/dports/lang/perl5-devel/perl5-5.35.4-102-ge43d289c7c/t/op/
H A Dindex.t99 my $text_utf8 = $text;
100 utf8::upgrade($text_utf8);
108 is (index($text_utf8, $search), 5);
109 is (rindex($text_utf8, $search), 18);
110 is (index($text_utf8, $search_utf8), 5);
111 is (rindex($text_utf8, $search_utf8), 18);
113 my $text_octets = $text_utf8;
123 is (index($text_utf8, $search_octets), -1);
124 is (rindex($text_utf8, $search_octets), -1);
/dports/net/gnome-nettool/gnome-nettool-3.8.1/src/
H A Dwhois.c123 gchar *text_utf8; in whois_foreach() local
136 text_utf8 = g_locale_to_utf8 (line, len, in whois_foreach()
140 (GTK_TEXT_BUFFER (buffer), &iter, text_utf8, in whois_foreach()
142 g_free (text_utf8); in whois_foreach()
H A Dfinger.c143 gchar *text_utf8; in finger_foreach() local
156 text_utf8 = g_locale_to_utf8 (line, len, in finger_foreach()
160 (GTK_TEXT_BUFFER (buffer), &iter, text_utf8, in finger_foreach()
162 g_free (text_utf8); in finger_foreach()
H A Dtraceroute.c141 gchar *text_utf8; in traceroute_foreach() local
154 text_utf8 = g_locale_to_utf8 (line, len, in traceroute_foreach()
158 (GTK_TEXT_BUFFER (buffer), &iter, text_utf8, in traceroute_foreach()
160 g_free (text_utf8); in traceroute_foreach()
H A Dlookup.c148 gchar *text_utf8; in lookup_foreach() local
161 text_utf8 = g_locale_to_utf8 (line, len, in lookup_foreach()
165 (GTK_TEXT_BUFFER (buffer), &iter, text_utf8, in lookup_foreach()
167 g_free (text_utf8); in lookup_foreach()
/dports/multimedia/obs-studio/obs-studio-27.1.3/UI/frontend-plugins/frontend-tools/
H A Dcaptions-mssapi.cpp138 char text_utf8[512]; in main_thread() local
139 os_wcs_to_utf8(text, 0, text_utf8, 512); in main_thread()
141 callback(text_utf8); in main_thread()
143 blog(LOG_DEBUG, "\"%s\"", text_utf8); in main_thread()
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/third_party/oauthlib/oauth1/rfc5849/
H A Dsignature.py470 text_utf8 = text.encode('utf-8')
471 signature = hmac.new(key_utf8, text_utf8, hashlib.sha1)
525 text_utf8 = text.encode('utf-8')
526 signature = hmac.new(key_utf8, text_utf8, hashlib.sha256)
/dports/devel/brz/breezy-3.2.0/breezy/tests/per_tree/
H A Dtest_iter_search_rules.py35 text_utf8 = text.encode('utf-8')
36 self.build_tree_contents([(rules.RULES_TREE_FILENAME, text_utf8)])
/dports/www/lighttpd/lighttpd-1.4.63/doc/scripts/
H A Dcreate-mime.conf.pl18 my %text_utf8 = map { $_ => 1 } qw(
150 $mimetype .= "; charset=utf-8" if $text_utf8{$1};
/dports/devel/py-cliff/cliff-3.3.0/cliff/tests/
H A Dtest_app.py522 text_utf8 = text.encode('utf-8')
535 text_utf8)
545 self.assertEqual(text_utf8, output)
549 writer.write(text_utf8)
551 self.assertEqual(text_utf8, output)
565 text_utf8)
/dports/games/julius/julius-1.7.0/src/input/
H A Dkeyboard.c363 void keyboard_text(const char *text_utf8) in keyboard_text() argument
366 char c = text_utf8[0]; in keyboard_text()
377 encoding_from_utf8(text_utf8, internal_char, 100); in keyboard_text()
/dports/games/augustus/augustus-3.1.0/src/input/
H A Dkeyboard.c363 void keyboard_text(const char *text_utf8) in keyboard_text() argument
366 char c = text_utf8[0]; in keyboard_text()
377 encoding_from_utf8(text_utf8, internal_char, 100); in keyboard_text()
/dports/textproc/ibus-typing-booster/ibus-typing-booster-2.15.11/engine/
H A Ditb_pango.py155 text_utf8 = text.encode('UTF-8', errors='replace')
158 ctypes.c_char_p(text_utf8),
176 run_text = text_utf8[offset:offset + length].decode(
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/ozone/platform/wayland/host/
H A Dzwp_text_input_wrapper_v1.cc83 const std::string text_utf8 = base::UTF16ToUTF8(text); in SetSurroundingText() local
84 zwp_text_input_v1_set_surrounding_text(obj_.get(), text_utf8.c_str(), in SetSurroundingText()
/dports/security/acmed/acmed-0.18.0/cargo-crates/attohttpc-0.17.0/examples/
H A Dpost_json.rs13 println!("Body:\n{}", resp.text_utf8()?); in main()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/ozone/platform/wayland/host/
H A Dzwp_text_input_wrapper_v1.cc85 const std::string text_utf8 = base::UTF16ToUTF8(text); in SetSurroundingText() local
86 zwp_text_input_v1_set_surrounding_text(obj_.get(), text_utf8.c_str(), in SetSurroundingText()

123