summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/strconv.cpp
Commit message (Collapse)AuthorAgeFilesLines
* osd/strconv.cpp: Deal with NUL when osd_uchar_from_osdchar uses mbstowcs. Vas Crabb2025-01-081-0/+8
|
* osd/strconv.cpp: Handle UTF-8 Windows code page internally in ↵ invertego2024-04-161-20/+30
| | | | osd_uchar_from_osdchar. (#12131)
* osd: Added multibyte check to osd_uchar_from_osdchar to fix decoding ASCII ↵ 9871238791132022-04-101-1/+6
| | | | | text. (#9536) This allows ASCII INI files to be parsed on Windows systems set to use a double-byte code page. It should also work with correctly-encoded Shift-JIS, GB2312, Big5 and EUC-KR. It won’t work for more complex variable-length encodings, or when the input is not correctly encoded.
* Remove OSD_UWP from rest of code Miodrag Milanovic2021-10-261-2/+2
|
* strconv: avoid msvc debug assertion Patrick Mackinlay2021-10-251-2/+2
|
* frontend: Fixed clone sorting; osd/strconv.cpp: The string_view treatment, ↵ Vas Crabb2021-10-091-53/+26
| | | | and fixed a bug with to/from ANSI codepage.
* use C++ library includes (nw) firewave2020-01-221-1/+1
|
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-281-3/+0
|
* Some more work on UWP (nw) Miodrag Milanovic2016-11-101-2/+2
|
* srcclean (nw) Vas Crabb2016-10-231-3/+3
|
* use standard types uintptr_t, char16_t and char32_t instead of FPTR, ↵ Miodrag Milanovic2016-10-221-2/+2
| | | | utf16_char, unicode_char (nw)
* Bulk renaming of Windows string conversion functions Nathan Woods2016-10-031-44/+51
| | | | | utf8_from_[a|w|t]string ==> osd::text::from_[a|w|t]string [a|w|t]string_from_utf8 ==> osd::text::to_[a|w|t]string
* Collapsing string_source class hierarchy Nathan Woods2016-10-031-34/+17
|
* Eliminated virtual function use in strconv.cpp Nathan Woods2016-10-031-17/+14
| | | | Take note that in practice, this does not actually change the compiled code because the optimizer should be smart enough to remove the need for vtable lookups as a part of optimization (this is definitely true for MinGW). If you really prefer, I can collapse the class hierarchy into a single templated class that just has overloaded constructors - this also doesn't actually change the compiled code, but I can make the change if you wish.
* Refactored to eliminate duplicate logic, sidestepped concerns about writing ↵ Nathan Woods2016-10-021-34/+78
| | | | NUL into NUL terminator byte in std::[w]string
* Adding new string conversion overloads Nathan Woods2016-10-011-6/+126
| | | | [a|w|t|utf8]_from_[a|w|t|utf8_]string(xyz.c_str()) seems to be common enough to justify overloads. Also, I'm explicitly assuming that it is legal to override the NUL pointer within a C++ basic_string (e.g. - s[s.size()] = '\0'). As far as I can tell, this seems to be legal - please don't shoot if I am wrong.
* fix vs2015 build (nw) Miodrag Milanovic2016-07-311-1/+1
|
* algorithm-> utility where appropriate, fix imgtool (nw) Miodrag Milanovic2016-07-311-1/+1
|
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-3/+4
| | | | to inline functions (nw)
* Using decltype() and removing +1/-1 "dance" Nathan Woods2016-07-251-3/+3
|
* Fixed off by one issue and other cleanups requested by Vas Nathan Woods2016-07-251-2/+2
|
* Changed strconv.[cpp|h] functions to return their results as std::string and ↵ Nathan Woods2016-07-241-41/+66
| | | | std::wstring
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-13/+13
|
* ah (nw) Miodrag Milanovic2016-03-231-1/+1
|
* Fix clang compile error (nw) Miodrag Milanovic2016-03-231-1/+1
|
* Get max char size from ANSI codepage instead of IsDBCSLeadChar() Brad Hughes2016-03-221-6/+16
|
* ups, sorry for this Miodrag Milanovic2015-11-111-1/+1
|
* more cleanups and fix (nw) Miodrag Milanovic2015-11-111-1/+0
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+141