fearlessTobi
63c2e32e20
Port #4182 from Citra: "Prefix all size_t with std::"
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.
8 years ago
Lioncash
33fbcb45a7
string_util: Remove AsciiToHex()
Easy TODO
8 years ago
mailwl
a2efb1dd48
Common/string_util: add StringFromBuffer function
convert input buffer (std::vector<u8>) to string, stripping zero chars
8 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
8 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.
8 years ago
James Rowe
096be16636
Format: Run the new clang format on everything
8 years ago
Huw Pascoe
a13ab958cb
Fixed type conversion ambiguity
8 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
10 years ago
Emmanuel Gil Peyrot
13e6876463
Common: Fix string_util includes.
11 years ago
Yuri Kunde Schlesner
8809d02db3
Common: Add StringFromFixedZeroTerminatedBuffer
11 years ago
Lioncash
9adad45b0f
string_util: Get rid of UriDecode/UriEncode
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Yuri Kunde Schlesner
6390c66e95
Implement text path trimming for shorter paths.
11 years ago
Emmanuel Gil Peyrot
f5d38649c7
Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated
11 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
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
90e994471a
Common: Move header guards over to pragma once
Also replaced C headers with the C++ equivalent ones
12 years ago
bunnei
cb504e236b
added helper functions for upper/lowercase strings
12 years ago
bunnei
de0a034a84
fixed project includes to use new directory structure
12 years ago
bunnei
63e46abdb8
got rid of 'src' folders in each sub-project
12 years ago
bunnei
c9b5b89e21
convert tabs to spaces
12 years ago
ShizZy
7564d28faf
replaced common code with dolphin common
12 years ago