/dports/games/openmw/openmw-openmw-0.47.0/components/to_utf8/ |
H A D | to_utf8.cpp | 45 using namespace ToUTF8; 52 case ToUTF8::WINDOWS_1252: in Utf8Encoder() 54 translationArray = ToUTF8::windows_1252; in Utf8Encoder() 57 case ToUTF8::WINDOWS_1250: in Utf8Encoder() 62 case ToUTF8::WINDOWS_1251: in Utf8Encoder() 67 case ToUTF8::CP437: in Utf8Encoder() 69 translationArray = ToUTF8::cp437; in Utf8Encoder() 327 ToUTF8::FromType ToUTF8::calculateEncoding(const std::string& encodingName) in calculateEncoding() 330 return ToUTF8::WINDOWS_1250; in calculateEncoding() 332 return ToUTF8::WINDOWS_1251; in calculateEncoding() [all …]
|
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/slic3r/GUI/ |
H A D | I18N.hpp | 53 …e_utf8(const char *s) { return wxGetTranslation(wxString(s, wxConvUTF8)).ToUTF8().data(); } in translate_utf8() 54 …inline std::string translate_utf8(const wchar_t *s) { return wxGetTranslation(s).ToUTF8().dat… in translate_utf8() 55 …onst std::string &s) { return wxGetTranslation(wxString(s.c_str(), wxConvUTF8)).ToUTF8().data(); } in translate_utf8() 56 …tring translate_utf8(const std::wstring &s) { return wxGetTranslation(s.c_str()).ToUTF8().data(); } in translate_utf8() 57 …inline std::string translate_utf8(const wxString &s) { return wxGetTranslation(s).ToUTF8().dat… in translate_utf8() 59 … *s, const char *plural, unsigned int n) { return translate(s, plural, n).ToUTF8().data(); } in translate_utf8() 60 … *s, const wchar_t *plural, unsigned int n) { return translate(s, plural, n).ToUTF8().data(); } in translate_utf8() 61 …&s, const std::string &plural, unsigned int n) { return translate(s, plural, n).ToUTF8().data(); } in translate_utf8() 78 …8(const wchar_t *s, const char* ctx) { return _wxGetTranslation_ctx(s, ctx).ToUTF8().data(); } in translate_utf8() 80 …std::wstring &s, const char* ctx) { return _wxGetTranslation_ctx(s.c_str(), ctx).ToUTF8().data(); } in translate_utf8() [all …]
|
H A D | format.hpp | 28 return format_wxstr(fmt.ToUTF8().data(), std::forward<TArgs>(args)...); in format_wxstr() 32 return Slic3r::format(fmt.ToUTF8().data(), std::forward<TArgs>(args)...); in format() 46 return utf8_buffer { arg.ToUTF8() }; in cook() 51 return utf8_buffer { arg.ToUTF8() }; in cook() 54 return utf8_buffer{ arg.ToUTF8() }; in cook()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/pdfium/core/fpdfdoc/ |
H A D | cpdf_formfield_unittest.cpp | 21 EXPECT_STREQ("foo", name.ToUTF8().c_str()); in TEST() 27 EXPECT_STREQ("bar.foo", name.ToUTF8().c_str()); in TEST() 31 EXPECT_STREQ("bar.foo", name.ToUTF8().c_str()); in TEST() 38 EXPECT_STREQ("qux.bar.foo", name.ToUTF8().c_str()); in TEST() 42 EXPECT_STREQ("qux.bar.foo", name.ToUTF8().c_str()); in TEST() 44 EXPECT_STREQ("foo.qux.bar", name.ToUTF8().c_str()); in TEST() 46 EXPECT_STREQ("bar.foo.qux", name.ToUTF8().c_str()); in TEST() 48 EXPECT_STREQ("bar.foo.qux", name.ToUTF8().c_str()); in TEST()
|
/dports/deskutils/treesheets/treesheets-1.0.2/lobster/src/lobster/ |
H A D | unicode.h | 17 inline int ToUTF8(int u, char *out /* must have space for 7 chars */) { in ToUTF8() function 58 inline string ToUTF8(const wchar_t *in) { in ToUTF8() function 62 ToUTF8(*in++, buf); in ToUTF8() 91 ToUTF8(0x24, buf); assert(!strcmp(buf, "\x24")); in unit_test_unicode() 92 ToUTF8(0xA2, buf); assert(!strcmp(buf, "\xC2\xA2")); in unit_test_unicode() 93 ToUTF8(0x20AC, buf); assert(!strcmp(buf, "\xE2\x82\xAC")); in unit_test_unicode() 94 ToUTF8(0x24B62, buf); assert(!strcmp(buf, "\xF0\xA4\xAD\xA2")); in unit_test_unicode() 96 assert(ToUTF8(L"\u30E6\u30FC\u30B6\u30FC\u5225\u30B5\u30A4\u30C8") == in unit_test_unicode()
|
/dports/games/0ad/0ad-0.0.23b-alpha/source/gui/ |
H A D | GUIutil.cpp | 75 …LOGWARNING("Too few CRect parameters (min %i). Your input: '%s'", NUM_COORDS, Value.ToUTF8().c_str… in __ParseString() 81 LOGWARNING("Unable to parse CRect parameters. Your input: '%s'", Value.ToUTF8().c_str()); in __ParseString() 101 return Output.SetClientArea(Value.ToUTF8()); in __ParseString() 110 if (g_GUI->GetPreDefinedColor(Value.ToUTF8(), Output)) in ParseColor() 113 return Output.ParseString(Value.ToUTF8(), DefaultAlpha); in ParseColor() 122 if (g_GUI->GetPreDefinedColor(Value.ToUTF8(), Output)) in __ParseString() 125 return Output.ParseString(Value.ToUTF8()); in __ParseString() 146 LOGWARNING("Unable to parse CSize parameters. Your input: '%s'", Value.ToUTF8().c_str()); in __ParseString() 181 LOGWARNING("Unable to parse CPos parameters. Your input: '%s'", Value.ToUTF8().c_str()); in __ParseString() 239 Output = Value.ToUTF8(); in __ParseString() [all …]
|
/dports/comms/trustedqsl/tqsl-2.4/apps/ |
H A D | tqslsign.cpp | 123 tqsl_setADIFMode(key.ToUTF8(), value.ToUTF8()); in IMPLEMENT_APP_CONSOLE() 139 int contest_type = strtol(value.ToUTF8(), NULL, 10); in init_contests() 208 gout = gzopen(outfile.ToUTF8(), "wb9"); in ConvertLogFile() 210 out.open(outfile.ToUTF8(), ios::out|ios::trunc|ios::binary); in ConvertLogFile() 358 _wunlink(utf8_to_wchar(outfile.ToUTF8())); in ConvertLogFile() 360 unlink(outfile.ToUTF8()); in ConvertLogFile() 384 _wunlink(utf8_to_wchar(outfile.ToUTF8())); in ConvertLogFile() 386 unlink(outfile.ToUTF8()); in ConvertLogFile() 439 if (tqsl_getStationLocation(&loc, locname.ToUTF8())) { in OnInit() 446 password = strdup(pwd.ToUTF8()); in OnInit() [all …]
|
H A D | tqslvalidator.cpp | 76 buf.Printf(_("Invalid %hs: \"%hs\""), (const char *) _type.ToUTF8(), (const char *)str.ToUTF8()); in Validate() 86 tqsl_initDate(reinterpret_cast<tQSL_Date *>(_objp), str.ToUTF8()); in FromString() 105 return (!tqsl_initDate(&d, str.ToUTF8()) && tqsl_isDateValid(&d)); in IsValid() 112 tqsl_initTime(reinterpret_cast<tQSL_Time *>(_objp), str.ToUTF8()); in FromString() 131 return (!tqsl_initTime(&t, str.ToUTF8()) && tqsl_isTimeValid(&t)); in IsValid()
|
H A D | tqsl.cpp | 248 strncpy(buf, pwd.ToUTF8(), bufsiz); in IMPLEMENT_APP() 666 tqsl_setADIFMode(key.ToUTF8(), value.ToUTF8()); in init_modes() 872 lfn = utf8_to_wchar(bfile.ToUTF8()); 878 int ret = rename(bfile.ToUTF8(), newName.ToUTF8()); 936 unlink(removeIt.ToUTF8()); 2354 unlink(outfile.ToUTF8()); 3954 locInfo["county"] = cty.ToUTF8(); 3956 locInfo["state"] = state.ToUTF8(); 4254 (const char *)name.ToUTF8(), (const char *)groupNames[i].ToUTF8()) < 0) { 5180 password = strdup(pwd.ToUTF8()); [all …]
|
/dports/databases/spatialite_gui/spatialite_gui-1.7.1/ |
H A D | Network.cpp | 114 strcpy(xname, table.ToUTF8()); in BuildNetwork() 118 strcpy(xsql, sql.ToUTF8()); in BuildNetwork() 140 strcpy(xname, table.ToUTF8()); in BuildNetwork() 144 strcpy(xsql, sql.ToUTF8()); in BuildNetwork() 212 strcpy(xname, from.ToUTF8()); in BuildNetwork() 215 strcpy(xname, to.ToUTF8()); in BuildNetwork() 245 strcpy(xsql, sql.ToUTF8()); in BuildNetwork() 419 strcpy(xname, to.ToUTF8()); in BuildNetwork() 485 strcpy(xsql, sql.ToUTF8()); in BuildNetwork() 794 strcpy(xsql, sql.ToUTF8()); in CreateNetwork() [all …]
|
H A D | TableTree.cpp | 2529 strcpy(xname, name.ToUTF8()); in OnCmdSpatialIndex() 2717 strcpy(xname, name.ToUTF8()); in OnCmdMbrCache() 3909 strcpy(x_path, path.ToUTF8()); in OnCmdDumpDbf() 5716 strcpy(cazzo, sql.ToUTF8()); in OnCmdRenameColumn() 6043 strcpy(xtable, table.ToUTF8()); in OnCmdCheckGeometries() 6044 strcpy(xgeometry, geom.ToUTF8()); in OnCmdCheckGeometries() 6131 strcpy(xtable, table.ToUTF8()); in OnCmdSanitizeGeometries() 6132 strcpy(xgeometry, geom.ToUTF8()); in OnCmdSanitizeGeometries() 6213 strcpy(xsql, sql1.ToUTF8()); in doDeleteDuplicates() 6225 strcpy(xsql, sql2.ToUTF8()); in doDeleteDuplicates() [all …]
|
H A D | QueryViewComposer.cpp | 576 strcpy(xname, ViewName.ToUTF8()); in UpdateSqlSample() 742 strcpy(xname, TableName1.ToUTF8()); in UpdateSqlSample() 1902 strcpy(xview, ViewName.ToUTF8()); in PrepareSqlTriggers() 2042 strcpy(xname, TableName1.ToUTF8()); in PrepareSqlTriggers() 2091 strcpy(xview, ViewName.ToUTF8()); in PrepareSqlTriggers() 2229 strcpy(xname, TableName1.ToUTF8()); in PrepareSqlTriggers() 2259 strcpy(xview, ViewName.ToUTF8()); in PrepareSqlTriggers() 2267 strcpy(xname, TableName1.ToUTF8()); in PrepareSqlTriggers() 2282 strcpy(org, dirty.ToUTF8()); in SqlCleanString() 2315 strcpy(org, dirty.ToUTF8()); in SqlCleanList() [all …]
|
H A D | Exif.cpp | 132 strcpy(xsql, sql.ToUTF8()); in CheckExifTables() 237 strcpy(xsql, sql.ToUTF8()); in CheckExifTables() 332 strcpy(xsql, sql.ToUTF8()); in CheckExifTables() 444 strcpy(xsql, sql.ToUTF8()); in CheckExifTables() 470 if (_chdir(path.ToUTF8()) < 0) in ExifLoadDir() 1413 strcpy(xsql, table.ToUTF8()); in ImportXmlDocuments() 1418 strcpy(xsql, pkName.ToUTF8()); in ImportXmlDocuments() 1611 strcpy(xsql, table.ToUTF8()); in CheckOrCreateXmlTable() 1616 strcpy(xsql, pkName.ToUTF8()); in CheckOrCreateXmlTable() 1678 strcpy(xsql, table.ToUTF8()); in CheckOrCreateXmlTable() [all …]
|
H A D | Shapefiles.cpp | 154 strcpy(xname, name.ToUTF8()); in TableAlreadyExists() 443 strcpy(dummy, path.ToUTF8()); in OutputPrjFile() 473 strcpy(xpath, path.ToUTF8()); in DumpTxtTab() 481 strcpy(xname, table.ToUTF8()); in DumpTxtTab() 587 strcpy(xpath, path.ToUTF8()); in ExportResultSetAsTxtTab() 695 strcpy(xpath, path.ToUTF8()); in DumpCsv() 703 strcpy(xname, table.ToUTF8()); in DumpCsv() 817 strcpy(xpath, path.ToUTF8()); in ExportResultSetAsCsv() 936 strcpy(xpath, path.ToUTF8()); in DumpHtml() 2461 strcpy(xsql, sql.ToUTF8()); in ExportResultSetAsDbf() [all …]
|
H A D | Main.cpp | 1639 unlink(SqlitePath.ToUTF8()); in OnCreateNew() 4400 strcpy(dummy, pKey.ToUTF8()); in DoElementaryGeometries() 4408 strcpy(dummy, pKey.ToUTF8()); in DoElementaryGeometries() 4485 strcpy(dummy, type.ToUTF8()); in DoElementaryGeometries() 4506 strcpy(dummy, sql4.ToUTF8()); in DoElementaryGeometries() 4541 strcpy(dummy, sql.ToUTF8()); in DoElementaryGeometries() 4551 strcpy(dummy, sql2.ToUTF8()); in DoElementaryGeometries() 5783 strcpy(xsql, sql.ToUTF8()); in GetViewColumns() 5818 strcpy(xsql, sql.ToUTF8()); in GetViewColumns() 5875 strcpy(xsql, sql.ToUTF8()); in GetViewColumns() [all …]
|
/dports/games/openmw/openmw-openmw-0.47.0/components/to_utf8/tests/ |
H A D | to_utf8_test.cpp | 9 void testEncoder(ToUTF8::FromType encoding, const std::string &legacyEncFile, 13 void testEncoder(ToUTF8::FromType encoding, const std::string &legacyEncFile, in testEncoder() 21 ToUTF8::Utf8Encoder encoder (encoding); in testEncoder() 56 … testEncoder(ToUTF8::WINDOWS_1251, "test_data/russian-win1251.txt", "test_data/russian-utf8.txt"); in main() 57 testEncoder(ToUTF8::WINDOWS_1252, "test_data/french-win1252.txt", "test_data/french-utf8.txt"); in main()
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/common/ |
H A D | filename_resolver.cpp | 131 ostr << m_paths.front().m_Pathexp.ToUTF8(); in SetProject() 493 ostr << " * " << errmsg.ToUTF8(); in readPathList() 512 ostr << " * " << errmsg.ToUTF8() << " '"; in readPathList() 513 ostr << cfgname.ToUTF8() << "'"; in readPathList() 518 cfgFile.open( cfgname.ToUTF8() ); in readPathList() 525 ostr << " * " << errmsg.ToUTF8() << " '" << cfgname.ToUTF8() << "'"; in readPathList() 602 ostr << " * " << errmsg.ToUTF8(); in WritePathList() 633 ostr << " * " << errmsg.ToUTF8() << " '" << cfgname.ToUTF8() << "'"; in WritePathList() 645 tstr = sPL->m_Alias.ToUTF8(); in WritePathList() 651 tstr = sPL->m_Pathvar.ToUTF8(); in WritePathList() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/ |
H A D | SQLite3.cs | 123 int n = UnsafeNativeMethods.sqlite3_open_interop(ToUTF8(strFilename), (int)flags, out db); in Open() 129 n = UnsafeNativeMethods.sqlite3_open_v2(ToUTF8(strFilename), out db, (int)flags, IntPtr.Zero); in Open() 132 n = UnsafeNativeMethods.sqlite3_open (ToUTF8 (strFilename), out db); in Open() 253 byte[] b = ToUTF8(strSql); in Prepare() 385 byte[] b = ToUTF8(value); in Bind_Text() 392 byte[] b = ToUTF8(dt); in Bind_DateTime() 545 …ativeMethods.sqlite3_table_column_metadata_interop(_sql, ToUTF8(dataBase), ToUTF8(table), ToUTF8(c… in ColumnMetaData() 549 … UnsafeNativeMethods.sqlite3_table_column_metadata(_sql, ToUTF8(dataBase), ToUTF8(table), ToUTF8(c… in ColumnMetaData() 899 UnsafeNativeMethods.sqlite3_result_error(context, ToUTF8(value), value.Length); in ReturnError() 923 byte[] b = ToUTF8(value); in ReturnText() [all …]
|
/dports/devel/ptlib/ptlib-2.10.11/include/ptlib/ |
H A D | wxstring.h | 85 inline PString p_str() const { return ToUTF8().data(); } in p_str() 86 inline operator PString() const { return ToUTF8().data(); } in PString() 87 inline operator PFilePath() const { return ToUTF8().data(); } in PFilePath() 89 inline operator PURL() const { return ToUTF8().data(); } in PURL() 92 inline operator PIPSocket::Address() const { return PString(ToUTF8().data()); } in Address() 94 …ream & operator<<(ostream & stream, const PwxString & string) { return stream << string.ToUTF8(); }
|
/dports/www/gitea/gitea-1.16.5/modules/charset/ |
H A D | charset_test.go | 143 res := ToUTF8(string([]byte{0x41, 0x42, 0x43})) 147 res = ToUTF8(string([]byte{0xc3, 0xa1, 0xc3, 0xa9, 0xc3, 0xad, 0xc3, 0xb3, 0xc3, 0xba})) 151 res = ToUTF8(string([]byte{0xef, 0xbb, 0xbf, 0xc3, 0xa1, 0xc3, 0xa9, 0xc3, 0xad, 0xc3, 0xb3, 157 res = ToUTF8(string([]byte{0x48, 0x6F, 0x6C, 0x61, 0x2C, 0x20, 0x61, 0x73, 0xED, 0x20, 0x63, 164 res = ToUTF8(string([]byte{0x48, 0x6F, 0x6C, 0x61, 0x2C, 0x20, 0x61, 0x73, 0xED, 0x20, 0x63, 176 res = ToUTF8(string([]byte{0x93, 0xFA, 0x91, 0xAE, 0x94, 0xE9, 0x82, 0xBC, 0x82, 0xB5, 0x82, 182 res = ToUTF8("\x00\x00\x00\x00")
|
/dports/games/openmw/openmw-openmw-0.47.0/apps/openmw/mwworld/ |
H A D | esmloader.hpp | 8 namespace ToUTF8 namespace 26 ToUTF8::Utf8Encoder* encoder, Loading::Listener& listener); 33 ToUTF8::Utf8Encoder* mEncoder;
|
/dports/audio/audacity/audacity-Audacity-3.1.3/libraries/lib-string-utils/ |
H A D | CodeConversions.h | 19 STRING_UTILS_API std::string ToUTF8 (const std::wstring& wstr); 20 STRING_UTILS_API std::string ToUTF8 (const wchar_t* wstr); 21 STRING_UTILS_API std::string ToUTF8 (const wxString& wstr);
|
H A D | CodeConversions.cpp | 19 std::string ToUTF8 (const std::wstring& wstr) in ToUTF8() function 24 std::string ToUTF8 (const wchar_t* wstr) in ToUTF8() function 29 std::string ToUTF8 (const wxString& wstr) in ToUTF8() function
|
/dports/audio/musicpd/mpd-0.23.6/src/io/ |
H A D | FileReader.cxx | 46 throw FormatLastError("Failed to open %s", path.ToUTF8().c_str()); in FileReader() 65 path.ToUTF8().c_str()); in Read() 114 path.ToUTF8().c_str()); in GetFileInfo() 126 throw FormatErrno("Failed to read from %s", path.ToUTF8().c_str()); in Read()
|
/dports/audio/audacity/audacity-Audacity-3.1.3/libraries/lib-sentry-reporting/ |
H A D | AnonymizedMessage.cpp | 29 : AnonymizedMessage(ToUTF8(message)) in AnonymizedMessage() 34 : AnonymizedMessage(ToUTF8(message)) in AnonymizedMessage() 44 : AnonymizedMessage(ToUTF8(message)) in AnonymizedMessage()
|