summaryrefslogtreecommitdiff
path: root/src/common/string_util.h
AgeCommit message (Collapse)Author
2018-11-18am: Deglobalize software keyboard appletZach Hilman
2018-11-18string_util: Implement buffer to UTF-16 string helper functionZach Hilman
Needed as most all software keyboard functions use fixed-length UTF16 string buffers.
2018-11-13string_util: Remove ArrayToString()Lioncash
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.
2018-11-13string_util: Remove TryParse()Lioncash
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.
2018-11-13string_util: Remove ThousandSeparate()Lioncash
This is currently unused and doesn't really provide much value to keep around either.
2018-10-02string_util: remove TString conversion for windowsWeiyi Wang
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.
2018-10-02string_util: remove ShiftJIS/CP1252 conversion functionWeiyi Wang
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
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi
2018-07-22string_util: Remove unnecessary std::string instance in TabsToSpaces()Lioncash
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.
2018-07-18string_util: Remove AsciiToHex()Lioncash
Easy TODO
2018-06-07Common/string_util: add StringFromBuffer functionmailwl
convert input buffer (std::vector<u8>) to string, stripping zero chars
2018-04-29string_util: Remove StringFromFormat() and related functionsLioncash
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
2018-03-22Logging: Create logging macros based on fmtlibDaniel Lim Wee Soong
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.
2018-01-20Format: Run the new clang format on everythingJames Rowe
2017-09-30Fixed type conversion ambiguityHuw Pascoe
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-03-31Fix encode problem On WindowsLFsWang
2015-06-28Common: Fix string_util includes.Emmanuel Gil Peyrot
2015-05-08Common: Add StringFromFixedZeroTerminatedBufferYuri Kunde Schlesner
2015-05-07string_util: Get rid of UriDecode/UriEncodeLioncash
2015-05-07Common: Remove common.hYuri Kunde Schlesner
2014-12-20License changepurpasmart96
2014-12-13Implement text path trimming for shorter paths.Yuri Kunde Schlesner
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Emmanuel Gil Peyrot
or generated
2014-11-12Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functionsarchshift
2014-10-23Removed uses of raw c-string manipulation functions.archshift
2014-09-08Added string_util to common, small changes in loader.cpparchshift
2014-09-08loader.cpp: improved file extension checking, made Upper/LowerStr usefularchshift
Instead of forcibly taking the last 4 characters, it now finds the last extension separator (the period) and takes a substr of its location.
2014-08-17Common: Move header guards over to pragma onceLioncash
Also replaced C headers with the C++ equivalent ones
2014-04-14added helper functions for upper/lowercase stringsbunnei
2014-04-08fixed project includes to use new directory structurebunnei
2014-04-08got rid of 'src' folders in each sub-projectbunnei