Sam Hocevar
155ae65a4e
Start working on the header-only part of the framework.
This implies creating a trimmed down branch that contains almost
nothing. It will then be usable by projects that do not need the
complex build system, and by the engine itself as a submodule from
the same repository.
5 년 전
Sam Hocevar
37abf6193f
RIP lol::String ⚰️ LOL
8 년 전
Sam Hocevar
980ff37a58
Get rid of numerous uses of lol::String.
8 년 전
Sam Hocevar
968f7c92bb
Get rid of String::format in favour of a std::string version.
8 년 전
Sam Hocevar
5bd042ce01
Implement split() for std::string.
This is the beginning of the removal of lol::String which is not really
useful once all its tiny utility functions are implemented for std::string.
8 년 전
Sam Hocevar
fe99aca67d
Use [[nodiscard]] in a lot of places.
This will let us detect problems with unused return values. For instance,
if you don’t remember that normalize(q) returns a pointer and expect it
to modify the object, you’ll get this warning:
warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
quat q(1,2,3,4); normalize(q);
^~~~~~~~~ ~
8 년 전
Sam Hocevar
c86f703dcf
Some Windows compilation fixes + support for [[nodiscard]].
8 년 전
Lolbot
af53a69eb7
fixed 9 files out of 506:
- removed 0 CR characters
- removed 7 trailing whitespaces
- replaced 332 tabs with spaces
9 년 전
touky
9174a1e43d
startup fixes
9 년 전
Sam Hocevar
78fdedf06f
base: add operator for char + String
9 년 전
Sam Hocevar
42e56399d4
base: hide an old warning from the GCC optimiser.
9 년 전
Sam Hocevar
3db14cd669
win64: various VS 2015 build fixes.
9 년 전
Sam Hocevar
8044747ac3
base: new string functions.
Add String.split(char) to split into an array, and add a simple
char const * + lol::String free operator.
9 년 전
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
10 년 전
Benjamin ‘Touky’ Huet
6ab67e8f86
btPhysTest is working again, but it still has 7 Ticker::Unref(Shader) that should be there ......
10 년 전
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
10 년 전
Benjamin ‘Touky’ Huet
f139a7e164
LolImGui integration 2nd pass: It now works perfectly (to the extent of the api)
SDL2: Mouse is back ! With correct focus support
SDL2: Added typing support with keyboard
ShaderBuilder: Refactored and simplified Shader block creation
Several warning removal
Fixed Image::Copy
10 년 전
Sam Hocevar
3cd4c4d413
base: more lowercase shit.
11 년 전
Guillaume Bittoun
bfe68911d4
string.h: bug fix on operator<
11 년 전
Guillaume Bittoun
5829785014
avl_tree: using avl_tree in map object.
11 년 전
Guillaume Bittoun
2998673ed0
String: operator < implementation
11 년 전
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
11 년 전
Sam Hocevar
7dba2ff3a1
base: use ptrdiff_t for array and string sizes and some other things.
11 년 전
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
11 년 전
Sam Hocevar
c8e1480593
base: allow String::Sub to ask for a too large substring.
11 년 전
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
11 년 전
Sam Hocevar
c27c3279ed
base: avoid confusion between versions of String::Printf().
12 년 전
Sam Hocevar
a7d169caff
ps3: some compilation fixes.
12 년 전
Benjamin ‘Touky’ Huet
d8114e6cfb
String : Added ::replace(char, char, bool), ::ToLower(), ::ToUpper()
Added utils.h : GetRandom(Array<T>) : gets a random element in a template list with weight logic.
T FindValue(char*) : Find the value of a safe enum from the given name (when GetName is implemented)
swap(T&, T&) is now in here too.
12 년 전
Benlitz
e50f75403a
core: added StartsWith and EndsWith function for strings, and a sign function for numeric types
12 년 전
Sam Hocevar
7cd3341504
base: allow String::C() to be non-const.
12 년 전
Sam Hocevar
9584830bad
base: leverage the libc for string comparisons.
12 년 전
Benlitz
e7b0c85e0f
Added comparison operators between strings and char const*
12 년 전
Sam Hocevar
395ab47c41
base: fix a compilation warning in string.h.
12 년 전
Sam Hocevar
f197588f47
base: really fix the PS3 build this time.
12 년 전
Sam Hocevar
fa31f691f9
base: fix PS3 build and use C library functions in string.h when possible.
12 년 전
Lolbot
b078ba08ea
fixed 15 files out of 2730:
- removed 49 CR characters
- removed 2 trailing whitespaces
- replaced 1622 tabs with spaces
12 년 전
Benlitz
4b98ef04a6
Added IndexOf and LastIndexOf methods in class String
12 년 전
Sam Hocevar
6d7535f842
base: work around an annoying GCC warning we very well know about.
13 년 전
Sam Hocevar
2932b55556
sys: prototype for the file reading functions.
13 년 전
Sam Hocevar
b07216ae20
base: add missing local using statement for namespace std.
13 년 전
Sam Hocevar
57814351b9
base: optimise array concatenation, fix string concatenation, and fix
string concatenation unit tests.
13 년 전
Sam Hocevar
41b752e635
base: tweak the asserts in the String class, add String::Sub() method
for substrings, and the corresponding unit tests.
13 년 전
Sam Hocevar
0ea4133bba
base: add safety asserts to the Array and String classes.
13 년 전
Sam Hocevar
34948b7a0c
base: fix a bug in the String fixed-size constructor.
13 년 전
Sam Hocevar
c65b715e3a
core: implement String::Printf() for va_list arguments.
13 년 전
Sam Hocevar
a2b1a60689
core: fix PS3 compilation.
13 년 전
Sam Hocevar
75b677cade
core: add missing <cstring> include in our string.h.
13 년 전
Sam Hocevar
6ce17605a7
string: implement String::Last() and a constructor for fixed-length strings.
13 년 전
Sam Hocevar
8dd6d33a6d
base: implement String::Resize().
13 년 전