Lioncash
26a157cd31
string_util: Use emplace_back() in SplitString() instead of push_back()
...
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.
7 years ago
Lioncash
cd46b267f5
string_util: Remove unnecessary std::string instance in TabsToSpaces()
...
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.
7 years ago
Lioncash
33fbcb45a7
string_util: Remove AsciiToHex()
...
Easy TODO
7 years ago
Hedges
e066bc75b9
More improvements to GDBStub ( #653 )
...
* 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
7 years ago
James Rowe
638956aa81
Rename logging macro back to LOG_*
7 years ago
mailwl
a2efb1dd48
Common/string_util: add StringFromBuffer function
...
convert input buffer (std::vector<u8>) to string, stripping zero chars
7 years ago
Lioncash
3abba08080
string_util: Remove StringFromFormat() and related functions
...
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
7 years ago
Lioncash
3cfe77ae75
common: Move logging macros over to new fmt-capable macros where applicable
7 years ago
Daniel Lim Wee Soong
3b558eebee
Logging: Create logging macros based on fmtlib
...
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.
7 years ago
James Rowe
096be16636
Format: Run the new clang format on everything
7 years ago
Huw Pascoe
a13ab958cb
Fixed type conversion ambiguity
8 years ago
Jannik Vogel
45d941d62e
Support mingw cross-compile
8 years ago
James Rowe
c3ea6f4ddb
Add mingw compile support
8 years ago
Yuri Kunde Schlesner
f120e78b56
Remove special rules for Windows.h and library includes
9 years ago
Yuri Kunde Schlesner
84fbbe2629
Use negative priorities to avoid special-casing the self-include
9 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
...
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
LFsWang
acfa76aa38
Fix encode problem On Windows
9 years ago
Yuri Kunde Schlesner
48393d452c
Common: Work around bug in MSVC2015 standard library
...
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.
10 years ago
zawata
6e9a6ca6bf
Common : Fix Conversion Warnings
10 years ago
Emmanuel Gil Peyrot
13e6876463
Common: Fix string_util includes.
10 years ago
Yuri Kunde Schlesner
8809d02db3
Common: Add StringFromFixedZeroTerminatedBuffer
10 years ago
Lioncash
9adad45b0f
string_util: Get rid of UriDecode/UriEncode
10 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
10 years ago
Subv
8e2b248e05
Build: Fixed some warnings
10 years ago
darkf
5d10b212ec
Fix MSVC-related #defines and add CMakeLists comment
10 years ago
darkf
8ba9ac0f74
Fix merge conflicts
10 years ago
purpasmart96
ebfd831ccb
License change
10 years ago
Yuri Kunde Schlesner
0600e2d8b5
Convert old logging calls to new logging macros
10 years ago
Tony Wasserka
33e61ef514
Merge pull request #261 from neobrain/boost
...
Add Boost as a submodule and add some minor cleanups using Boost.Range
10 years ago
archshift
4763fca9f8
Explicitly specify LE strings to iconv, fixes paths in Steel Diver
10 years ago
Tony Wasserka
3d8c6e61be
StringUtil: Perform some minimal cleanup.
10 years ago
Rohit Nirmal
8a62423970
Change NULLs to nullptrs.
10 years ago
darkf
459502e48c
Fix MinGW build
10 years ago
Emmanuel Gil Peyrot
f5d38649c7
Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated
10 years ago
archshift
1f7c4ab7f6
Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functions
11 years ago
archshift
7fa4dbd0c6
Removed uses of raw c-string manipulation functions.
11 years ago
bunnei
532a9e80a0
Merge pull request #99 from archshift/ext-check
...
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
11 years ago
bunnei
d79fe3ebaa
Merge pull request #103 from archshift/prune
...
Prune redundant includes
11 years ago
archshift
9d7cc2bedc
common: Prune all redundant includes
11 years ago
archshift
5472fd4d9b
Added string_util to common, small changes in loader.cpp
11 years ago
archshift
4ed24a0619
loader.cpp: improved file extension checking, made Upper/LowerStr useful
...
Instead of forcibly taking the last 4 characters, it now finds the last extension separator (the period) and takes a substr of its location.
11 years ago
Lioncash
2f6ef914db
Common: Fix a potential infinite loop in StringUtil's ReplaceAll
11 years ago
Lioncash
da6f24b374
Common: Move remaining C header includes over to their C++ equivalent
11 years ago
bunnei
cb504e236b
added helper functions for upper/lowercase strings
11 years ago
bunnei
de0a034a84
fixed project includes to use new directory structure
11 years ago
bunnei
63e46abdb8
got rid of 'src' folders in each sub-project
11 years ago