Rubidium
4c117dd2d8
Revert #11993 : new number format system does not and cannot work for CJK languages
...
There are too many intricacies that I am unaware of that are popping up after
asking whether things are right or not.
I do not want to keep playing whack-a-mole, so just revert the whole thing.
This reverts:
15be383b93
360fe8b0b6
1aa9a5c0ab
59f56941e5
7e2eefb91f
b741b2ba6f
609d0071d5
9f8fd80112
a253205b93
819c6c756e
4 months ago
Rubidium
7e2eefb91f
Cleanup: Remove digit group separators from strgen and languages
4 months ago
Rubidium
819c6c756e
Codechange: Add support for number format and abbreviations pragmas/attributes to strgen
4 months ago
frosch
28c83089f6
Codechange: Remove TKM string code.
5 months ago
Tyler Trahan
fd9e72a7e7
Feature: Use real-time "wallclock" timekeeping units ( #11341 )
5 months ago
Rubidium
47c0184a0b
Codechange: replace ROR/ROL with std::rotr/rotl
5 months ago
frosch
b6c8f301be
Codechange: Silence warnings about intentionally unused parameters.
9 months ago
Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
11 months ago
Rubidium
6d597879d0
Codechange: let ReadLine return a string instead of passing a buffer
1 year ago
Rubidium
802d6cb509
Fix: memory leak when parsing (strgen) commands by moving to C++ containers
1 year ago
Rubidium
4f94655cc2
Codechange: use vector/unorder_map over custom implementation
1 year ago
Rubidium
234a143ee5
Codechange: use std::string for LangString over C-style strings
1 year ago
Rubidium
f372373e6f
Codechange: use std::string/vector for language cases over manual management
1 year ago
Rubidium
3323402aaa
Codechange: rename smallvec_type to container_func and use only when needed
1 year ago
Charles Pigott
80bd5ad727
Codechange: Use std::strto* variants everywhere ( #10720 )
1 year ago
Rubidium
f74e26ca7e
Codechange: replace error/usererror printf variant with fmt variant and rename
1 year ago
Rubidium
7b539fa7c9
Fix: fmt's {:#04X} yields '0X00', not '0x0000'
...
Technically the 0X vs 0x is not a big problem, just not pretty. However, the
length also including the 0x results in unexpected behaviour, so it probably
better to not use it.
1 year ago
Rubidium
dfe52da1ea
Codechange: use string/fmt instead of print for strgen warnings/errors/fatals
1 year ago
Charles Pigott
6fc28d649e
Cleanup: Unused alloca definitions and includes
1 year ago
Charles Pigott
b282664242
Codechange: Replace all usages of alloca/AllocaM with more modern/less discouraged alternatives
1 year ago
glx22
af15dca316
Change: [Script] Extract params info from GS strings
1 year ago
rubidium42
6ba55e663e
Codechange: do not hide variables with other variables
1 year ago
Loïc Guilloux
b6fb020388
Change: [strgen] Change warnings for translations into infos ( #9406 )
...
Unless invoked with -w, --warning ("print a warning for any untranslated strings") or -t, --todo ("replace any untranslated strings with '<TODO>'").
Eints normally fixes the warnings after a Pull Request, so it is not really useful information for the developer to see as a warning.
3 years ago
rubidium42
ddaedaf32a
Fix: empty undocumented branches
3 years ago
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
3 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
glx22
cef9a76c3f
Fix #7553 : check bounds when loading strings ( #7554 )
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
5 years ago
glx22
66dd7c3879
Fix: MSVC warnings ( #7423 )
5 years ago
Henry Wilson
c01a2e2a81
Codechange: Removed SmallVector completely
5 years ago
Henry Wilson
ab711e6942
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
5 years ago
Henry Wilson
a0f36a50e6
Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back()
5 years ago
Henry Wilson
a690936ed7
Codechange: Replace SmallVector::Length() with std::vector::size()
5 years ago
Henry Wilson
bfd79e59dc
Codechange: Replace SmallVector::Clear() with std::vector::clear()
5 years ago
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
6 years ago
michi_cc
35b77450f8
(svn r27380) -Fix: [Win32] Compilation with MSVC2015.
9 years ago
frosch
50a3f44539
(svn r27295) -Add: [strgen] Default plural subparameter positions for CARGO_xxx string control codes.
9 years ago
rubidium
5e90054f20
(svn r26511) -Codechange: use strecpy in game_text
10 years ago
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
10 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
10 years ago
rubidium
6f21593bf6
(svn r26050) -Fix: possible, but currently untriggered, out of bounds access in strgen
11 years ago
rubidium
b35b17beeb
(svn r25326) -Fix [FS#5589]: check for zero width space in translations and fail upon finding them
11 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
frosch
16760cff8b
(svn r24516) -Add: [GS] Support ##plural pragma in GS lang files.
12 years ago
rubidium
d99eb6aac2
(svn r23853) -Fix: several incorrect @files
13 years ago
frosch
0011f9ce45
(svn r23805) -Add: {STRING6} and {STRING7}.
13 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
rubidium
88f1acd26b
(svn r23587) -Fix-ish: MSVC warnings in case strgen would be in the main project file
13 years ago
rubidium
50b63c5870
(svn r23585) -Codechange: replace some magic numbers with less magic constants
13 years ago
rubidium
1f083c3ac8
(svn r23576) -Codechange: split the base of strgen with the strgen code that creates the actual .lng files
13 years ago