summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* string_util: Get rid of separate resize() in CPToUTF16(), UTF16ToUTF8(), ↵Gravatar Lioncash2018-07-221-20/+22
| | | | | | | | | | CodeToUTF8() and UTF8ToUTF16() There's no need to perform the resize separately here, since the constructor allows presizing the buffer. Also move the empty string check before the construction of the string to make the early out more straightforward.
* string_util: Use emplace_back() in SplitString() instead of push_back()Gravatar Lioncash2018-07-221-2/+3
| | | | | | | | | | | | | This is equivalent to doing: push_back(std::string("")); which is likely not to cause issues, assuming a decent std::string implementation with small-string optimizations implemented in its design, however it's still a little unnecessary to copy that buffer regardless. Instead, we can use emplace_back() to directly construct the empty string within the std::vector instance, eliminating any possible overhead from the copy.
* string_util: Remove unnecessary std::string instance in TabsToSpaces()Gravatar Lioncash2018-07-221-7/+6
| | | | | | 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-12/+0
| | | | Easy TODO
* More improvements to GDBStub (#653)Gravatar Hedges2018-07-121-1/+1
| | | | | | | | | | | * 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
* Rename logging macro back to LOG_*Gravatar James Rowe2018-07-021-4/+4
|
* Common/string_util: add StringFromBuffer functionGravatar mailwl2018-06-071-0/+4
| | | | convert input buffer (std::vector<u8>) to string, stripping zero chars
* string_util: Remove StringFromFormat() and related functionsGravatar Lioncash2018-04-291-70/+0
| | | | Given we utilize fmt, we don't need to provide our own functions for formatting anymore
* common: Move logging macros over to new fmt-capable macros where applicableGravatar Lioncash2018-04-261-5/+5
|
* Logging: Create logging macros based on fmtlibGravatar Daniel Lim Wee Soong2018-03-221-0/+23
| | | | | | | | | 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-2/+2
|
* Fixed type conversion ambiguityGravatar Huw Pascoe2017-09-301-1/+1
|
* Support mingw cross-compileGravatar Jannik Vogel2016-12-051-1/+1
|
* Add mingw compile supportGravatar James Rowe2016-11-131-2/+3
|
* Remove special rules for Windows.h and library includesGravatar Yuri Kunde Schlesner2016-09-211-1/+1
|
* Use negative priorities to avoid special-casing the self-includeGravatar Yuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Gravatar Emmanuel Gil Peyrot2016-09-211-3/+1
| | | | | | | 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-116/+75
|
* Fix encode problem On WindowsGravatar LFsWang2016-03-311-8/+8
|
* Common: Work around bug in MSVC2015 standard libraryGravatar Yuri Kunde Schlesner2015-08-021-0/+14
| | | | | | 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.
* Common : Fix Conversion WarningsGravatar zawata2015-07-191-1/+1
|
* Common: Fix string_util includes.Gravatar Emmanuel Gil Peyrot2015-06-281-2/+7
|
* Common: Add StringFromFixedZeroTerminatedBufferGravatar Yuri Kunde Schlesner2015-05-081-0/+8
|
* string_util: Get rid of UriDecode/UriEncodeGravatar Lioncash2015-05-071-125/+0
|
* Common: Remove common.hGravatar Yuri Kunde Schlesner2015-05-071-1/+3
|
* Build: Fixed some warningsGravatar Subv2015-02-121-3/+3
|
* Fix MSVC-related #defines and add CMakeLists commentGravatar darkf2014-12-291-3/+3
|
* Fix merge conflictsGravatar darkf2014-12-291-16/+16
|\
| * License changeGravatar purpasmart962014-12-201-2/+2
| |
| * Convert old logging calls to new logging macrosGravatar Yuri Kunde Schlesner2014-12-131-5/+5
| |
| * Merge pull request #261 from neobrain/boostGravatar Tony Wasserka2014-12-121-3/+3
| |\ | | | | | | Add Boost as a submodule and add some minor cleanups using Boost.Range
| | * StringUtil: Perform some minimal cleanup.Gravatar Tony Wasserka2014-12-071-3/+3
| | |
| * | Explicitly specify LE strings to iconv, fixes paths in Steel DiverGravatar archshift2014-12-091-2/+2
| |/
| * Change NULLs to nullptrs.Gravatar Rohit Nirmal2014-12-031-4/+4
| |
* | Fix MinGW buildGravatar darkf2014-11-281-3/+3
|/
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Gravatar Emmanuel Gil Peyrot2014-11-191-9/+9
| | | | or generated
* Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functionsGravatar archshift2014-11-121-48/+110
|
* Removed uses of raw c-string manipulation functions.Gravatar archshift2014-10-231-9/+2
|
* Merge pull request #99 from archshift/ext-checkGravatar bunnei2014-09-111-10/+10
|\ | | | | loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
| * Added string_util to common, small changes in loader.cppGravatar archshift2014-09-081-2/+6
| |
| * loader.cpp: improved file extension checking, made Upper/LowerStr usefulGravatar archshift2014-09-081-10/+6
| | | | | | | | Instead of forcibly taking the last 4 characters, it now finds the last extension separator (the period) and takes a substr of its location.
* | Merge pull request #103 from archshift/pruneGravatar bunnei2014-09-101-4/+0
|\ \ | | | | | | Prune redundant includes
| * | common: Prune all redundant includesGravatar archshift2014-09-081-4/+0
| |/
* / Common: Fix a potential infinite loop in StringUtil's ReplaceAllGravatar Lioncash2014-09-081-3/+8
|/
* Common: Move remaining C header includes over to their C++ equivalentGravatar Lioncash2014-08-171-3/+3
|
* added helper functions for upper/lowercase stringsGravatar bunnei2014-04-141-0/+16
|
* fixed project includes to use new directory structureGravatar bunnei2014-04-081-3/+3
|
* got rid of 'src' folders in each sub-projectGravatar bunnei2014-04-081-0/+531