summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
AgeCommit message (Collapse)Author
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-07-12More improvements to GDBStub (#653)Hedges
* More improvements to GDBStub - Debugging of threads should work correctly with source and assembly level stepping and modifying registers and memory, meaning threads and callstacks are fully clickable in VS. - List of modules is available to the client, with assumption that .nro and .nso are backed up by an .elf with symbols, while deconstructed ROMs keep N names. - Initial support for floating point registers. * Tidy up as requested in PR feedback * Tidy up as requested in PR feedback
2018-07-02Rename logging macro back to LOG_*James Rowe
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-04-26common: Move logging macros over to new fmt-capable macros where applicableLioncash
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-12-05Support mingw cross-compileJannik Vogel
2016-11-13Add mingw compile supportJames Rowe
2016-09-21Remove special rules for Windows.h and library includesYuri Kunde Schlesner
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner
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-08-02Common: Work around bug in MSVC2015 standard libraryYuri Kunde Schlesner
The char16_t/char32_t implementations aren't present in the library and cause linker errors. This is a known issue that wasn't fixed in VS2015 RTM.
2015-07-19Common : Fix Conversion Warningszawata
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
2015-02-12Build: Fixed some warningsSubv
2014-12-29Fix MSVC-related #defines and add CMakeLists commentdarkf
2014-12-29Fix merge conflictsdarkf
2014-12-20License changepurpasmart96
2014-12-13Convert old logging calls to new logging macrosYuri Kunde Schlesner
2014-12-12Merge pull request #261 from neobrain/boostTony Wasserka
Add Boost as a submodule and add some minor cleanups using Boost.Range
2014-12-09Explicitly specify LE strings to iconv, fixes paths in Steel Diverarchshift
2014-12-07StringUtil: Perform some minimal cleanup.Tony Wasserka
2014-12-03Change NULLs to nullptrs.Rohit Nirmal
2014-11-28Fix MinGW builddarkf
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-11Merge pull request #99 from archshift/ext-checkbunnei
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
2014-09-10Merge pull request #103 from archshift/prunebunnei
Prune redundant includes
2014-09-08common: Prune all redundant includesarchshift
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-09-08Common: Fix a potential infinite loop in StringUtil's ReplaceAllLioncash
2014-08-17Common: Move remaining C header includes over to their C++ equivalentLioncash
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