summaryrefslogtreecommitdiff
path: root/src/common/string_util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* am: Deglobalize software keyboard appletGravatar Zach Hilman2018-11-181-2/+2
|
* string_util: Implement buffer to UTF-16 string helper functionGravatar Zach Hilman2018-11-181-0/+8
| | | Needed as most all software keyboard functions use fixed-length UTF16 string buffers.
* string_util: Remove ArrayToString()Gravatar Lioncash2018-11-131-2/+0
| | | | | | | | An old function from Dolphin. This is also unused, and pretty inflexible when it comes to printing out different data types (for example, one might not want to print out an array of u8s but a different type instead. Given we use fmt, there's no need to keep this implementation of the function around.
* string_util: Remove TryParse()Gravatar Lioncash2018-11-131-17/+0
| | | | | | This is an unused hold-over from Dolphin that was primarily used to parse values out of the .ini files. Given we already have libraries that do this for us, we don't need to keep this around.
* string_util: Remove ThousandSeparate()Gravatar Lioncash2018-11-131-14/+0
| | | | | This is currently unused and doesn't really provide much value to keep around either.
* string_util: remove TString conversion for windowsGravatar Weiyi Wang2018-10-021-18/+0
| | | | First of all they are foundamentally broken. As our convention is that std::string is always UTF-8, these functions assume that the multi-byte character version of TString (std::string) from windows is also in UTF-8, which is almost always wrong. We are not going to build multi-byte character build, and even if we do, this dirty work should be handled by frontend framework early.
* string_util: remove ShiftJIS/CP1252 conversion functionGravatar Weiyi Wang2018-10-021-3/+0
| | | | We always use unicode internally. Any dirty work of conversion with other codec should be handled by frontend framework (Qt). Further more, ShiftJIS/CP1252 are not special (they are not code set used by 3ds, or any guest/host dependencies we have), so there is no reason to specifically include them
* Port #4182 from Citra: "Prefix all size_t with std::"Gravatar fearlessTobi2018-09-151-2/+2
|
* string_util: Remove unnecessary std::string instance in TabsToSpaces()Gravatar Lioncash2018-07-221-1/+1
| | | | | | We can just use the variant of std::string's replace() function that can replace an occurrence with N copies of the same character, eliminating the need to allocate a std::string containing a buffer of spaces.
* string_util: Remove AsciiToHex()Gravatar Lioncash2018-07-181-3/+0
| | | | Easy TODO
* Common/string_util: add StringFromBuffer functionGravatar mailwl2018-06-071-0/+2
| | | | convert input buffer (std::vector<u8>) to string, stripping zero chars
* string_util: Remove StringFromFormat() and related functionsGravatar Lioncash2018-04-291-14/+0
| | | | Given we utilize fmt, we don't need to provide our own functions for formatting anymore
* Logging: Create logging macros based on fmtlibGravatar Daniel Lim Wee Soong2018-03-221-0/+13
| | | | | | | | | Add a new set of logging macros based on fmtlib Similar but not exactly the same as https://github.com/citra-emu/citra/pull/3533 Citra currently uses a different version of fmt, which does not support FMT_VARIADIC so make_args is used instead. On the other hand, yuzu uses fmt 4.1.0 which doesn't have make_args yet so FMT_VARIADIC is used.
* Format: Run the new clang format on everythingGravatar James Rowe2018-01-201-1/+1
|
* Fixed type conversion ambiguityGravatar Huw Pascoe2017-09-301-1/+1
|
* Remove empty newlines in #include blocks.Gravatar Emmanuel Gil Peyrot2016-09-211-1/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-181-28/+28
|
* Fix encode problem On WindowsGravatar LFsWang2016-03-311-1/+1
|
* Common: Fix string_util includes.Gravatar Emmanuel Gil Peyrot2015-06-281-1/+2
|
* Common: Add StringFromFixedZeroTerminatedBufferGravatar Yuri Kunde Schlesner2015-05-081-0/+6
|
* string_util: Get rid of UriDecode/UriEncodeGravatar Lioncash2015-05-071-2/+0
|
* Common: Remove common.hGravatar Yuri Kunde Schlesner2015-05-071-1/+1
|
* License changeGravatar purpasmart962014-12-201-2/+2
|
* Implement text path trimming for shorter paths.Gravatar Yuri Kunde Schlesner2014-12-131-0/+15
|
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Gravatar Emmanuel Gil Peyrot2014-11-191-1/+1
| | | | or generated
* Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functionsGravatar archshift2014-11-121-3/+5
|
* Removed uses of raw c-string manipulation functions.Gravatar archshift2014-10-231-1/+0
|
* Added string_util to common, small changes in loader.cppGravatar archshift2014-09-081-3/+6
|
* loader.cpp: improved file extension checking, made Upper/LowerStr usefulGravatar archshift2014-09-081-2/+3
| | | | Instead of forcibly taking the last 4 characters, it now finds the last extension separator (the period) and takes a substr of its location.
* Common: Move header guards over to pragma onceGravatar Lioncash2014-08-171-8/+4
| | | | Also replaced C headers with the C++ equivalent ones
* added helper functions for upper/lowercase stringsGravatar bunnei2014-04-141-0/+6
|
* fixed project includes to use new directory structureGravatar bunnei2014-04-081-1/+1
|
* got rid of 'src' folders in each sub-projectGravatar bunnei2014-04-081-0/+111