summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/strconv.h
Commit message (Collapse)AuthorAgeFilesLines
* frontend: Fixed clone sorting; osd/strconv.cpp: The string_view treatment, ↵ Vas Crabb2021-10-091-23/+22
| | | | and fixed a bug with to/from ANSI codepage.
* -ui: Made zoom controls a bit more intuitive. Vas Crabb2021-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The UI controls are described as zoom in/out, but they had the opposite effect on the palette and tile viewers. That has been changed to make them consistent with the tilemap viewer. * Made the default zoom key not act as a toggle. People are familiar with the function of Ctrl+0/=/- in web browsers, so making them behave similarly in MAME should make it more approachable. Also added the default zoom key to the relevant documentation page. * Implemented the default zoom key for the palette and tile viewers. * In the tilemap viewer, if the view is in default expand to fit mode, zoom in/out starting from the actual zoom ratio. Once again, this behaves more like the zoom controls in a web browser displaying an image so it should be more intuitive. * Made more messages from the tilemap viewer localisable. -util/zippath.cpp: Fixed MT08074. * There were multiple issues at play here. After #8443 was applied, is_root was simply never returning true on Windows, as OSD_WINDOWS isn't actually defined outside libosd and libocore. This caused phantom parent items to appear in disk roots on Windows, but it meant that the check in zippath_resolve would always fail so the trailing backslash would be trimmed. Fixing the macro test in is_root meant the trailing backslash from C:\ would no longer be trimmed, which caused the stat in zippath_resolve to fail. -bigbord2.cpp: Hooked up floppy DRQ that had somehow got lost. -Reduced tag map lookups in several drivers and devices. -util/coretmpl.h: Removed an overload of bitswap that can be avoided using if constexpr. -Added doxygen comments to some classes, and fixed several doxygen warnings. -util, osd: Test for _WIN32 rather than WIN32. * In C++17 mode, WIN32 is no longer a predefined macro, although various things in 3rdparty define it to maintain legacy support. We're better off moving forward anyway for when WIN32 disappears entirely. (WIN32 is not a reserved name, while _WIN32 is, starting with an underscore follwed by an uppercase letter.)
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-281-4/+0
|
* Bulk renaming of Windows string conversion functions Nathan Woods2016-10-031-21/+28
| | | | | 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
* Fixing const-ness on prototypes Nathan Woods2016-10-031-2/+2
|
* Adding new string conversion overloads Nathan Woods2016-10-011-2/+10
| | | | [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.
* Changed strconv.[cpp|h] functions to return their results as std::string and ↵ Nathan Woods2016-07-241-26/+9
| | | | std::wstring
* Make monitor list a list of shared_ptr like window_list (nw) Brad Hughes2016-07-011-0/+10
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-1/+1
|
* Skeleton implementation for Universal windows main app classes. Brad Hughes2016-04-101-0/+11
|
* Move font enumeration to OSD, separate font name from display name as needed ↵ Vas Crabb2016-03-171-7/+9
| | | | for OSX
* removed restriction link for BSD3 licensed files (nw) Miodrag Milanovic2015-05-071-3/+0
|
* removed not needed declaration (nw) Miodrag Milanovic2015-04-061-4/+0
|
* SDL and Windows strconv are the same thing. Vas Crabb2015-03-291-0/+52