Brad Hughes
b47ec24df6
Move special windows.h include directives to build defines (nw)
2016-12-28 15:07:28 -05:00
Miodrag Milanovic
a18497e7a2
Some more work on UWP (nw)
2016-11-10 13:13:51 +01:00
Vas Crabb
129c0feeed
srcclean (nw)
2016-10-23 22:36:24 +11:00
Miodrag Milanovic
23ad94073f
use standard types uintptr_t, char16_t and char32_t instead of FPTR, utf16_char, unicode_char (nw)
2016-10-22 11:31:49 +02:00
Nathan Woods
85ba2fde28
Bulk renaming of Windows string conversion functions
...
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
2016-10-03 23:20:25 -04:00
Nathan Woods
8e67c061b5
Collapsing string_source class hierarchy
2016-10-03 21:50:09 -04:00
Nathan Woods
6549ec8ccf
Eliminated virtual function use in strconv.cpp
...
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.
2016-10-03 21:50:04 -04:00
Nathan Woods
8695bdac87
Refactored to eliminate duplicate logic, sidestepped concerns about writing NUL into NUL terminator byte in std::[w]string
2016-10-02 12:43:09 -04:00
Nathan Woods
c0ff37c30d
Adding new string conversion overloads
...
[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.
2016-10-01 14:53:32 -04:00
Miodrag Milanovic
d20fa27c1b
fix vs2015 build (nw)
2016-07-31 16:13:12 +02:00
Miodrag Milanovic
185f5059fb
algorithm-> utility where appropriate, fix imgtool (nw)
2016-07-31 15:37:37 +02:00
Miodrag Milanovic
9667c6a8cc
std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw)
2016-07-31 14:41:02 +02:00
Nathan Woods
23175a3091
Using decltype() and removing +1/-1 "dance"
2016-07-25 07:57:54 -04:00
Nathan Woods
4a9e9742fd
Fixed off by one issue and other cleanups requested by Vas
2016-07-25 07:49:26 -04:00
Nathan Woods
ab73291e47
Changed strconv.[cpp|h] functions to return their results as std::string and std::wstring
2016-07-24 22:55:00 -04:00
Miodrag Milanovic
89c5e1f681
Various cleanups suggested by static analyzer (nw)
2016-04-24 12:58:31 +02:00
Miodrag Milanovic
bc43490a4c
ah (nw)
2016-03-23 18:35:35 +01:00
Miodrag Milanovic
6fcd60b271
Fix clang compile error (nw)
2016-03-23 18:25:32 +01:00
Brad Hughes
1c7f05a833
Get max char size from ANSI codepage instead of IsDBCSLeadChar()
2016-03-22 21:15:46 -04:00
Miodrag Milanovic
927a8a5302
ups, sorry for this
2015-11-11 18:41:32 +01:00
Miodrag Milanovic
02f128df25
more cleanups and fix (nw)
2015-11-11 17:19:26 +01:00
Miodrag Milanovic
7c19aac60e
Rename *.c -> *.cpp in our source (nw)
2015-11-08 12:56:12 +01:00