duncanspumpkin
dbb04f6a94
Further removal
2023-05-22 08:52:43 +01:00
duncanspumpkin
b58a17c731
Remove localisation object overrides
2023-05-22 08:50:19 +01:00
Silent
8216d00522
Set the container type in LanguagePack::FromFile to std::string
...
The code interpreting fileData assumes the string has a valid null terminator,
which is not guaranteed by std::vector, but is guaranteed by std::string.
2023-02-14 09:50:05 +01:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Michael Steenbeek
f68b705f9f
Remove malloc in LanguagePack.cpp ( #19111 )
2023-01-10 23:18:13 +00:00
Gymnasiast
784b7d9fcc
Apply review requests from @tupaschoal
2023-01-04 19:43:31 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
germanaizek
958bfbc08a
Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen
2022-05-07 16:05:39 +02:00
Johan Mattsson
c00cc90b1f
Fix bounds checks and a nullptr check
2022-02-03 21:42:12 +01:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Hielke Morsink
be4159f9ac
Create std::unique_ptr<ILanguagePack>instead of raw pointer
2021-08-21 00:28:21 +02:00
Michael Steenbeek
1da6ae6b51
Merge pull request #13710 from skdltmxn/refactor/string_view
...
Refactor/string view
2021-01-10 13:37:01 +01:00
skdltmxn
b0a8ebc808
Refactor to use push_back more efficient ( #13726 )
2021-01-08 20:59:55 +00:00
skdltmxn
c093a50f3f
Refactor to use string_view more properly
2021-01-07 01:52:10 +09:00
Ted John
b6a688e540
Refactor format tokens
2020-11-27 18:54:57 +00:00
Ted John
2f7c1aab14
Start eradicating old format codes
2020-11-27 18:54:56 +00:00
Hielke Morsink
f0c1ea1d37
Split declarations and definitions to improve compile times when editing ( #13332 )
...
* Split FileStream declarations and definitions
* Split JobPool declarations and definitions
* Split StringBuilder declarations and definitions
* Split StringReader declarations and definitions
* Split ZoomLevel declarations and definitions
* Fix missing include in FileClassifier.cpp
* Remove pragma once from source files
* Fix missing include in StringBuilder.h
* Update Xcode project
* Fix compilation of tests
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-11-07 12:42:04 +00:00
Ted John
c204767176
Fix RTL for Windows
2020-09-18 19:46:12 +02:00
Gymnasiast
4ff77ebc35
Split RTL implementations to files; add preprocessor guards
2020-09-18 19:46:12 +02:00
Gymnasiast
f11d1294fe
Use FriBidi on Windows, ICU on the rest
2020-09-18 19:46:12 +02:00
Gymnasiast
751810fc24
Use FriBidi for Bidi and shaping instead of ICU
2020-09-18 19:46:12 +02:00
Matt
83355e35cc
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
2020-08-05 16:29:36 +02:00
Ted John
46d69126ea
Split identifier and legacyIdentifier on Object
2020-05-08 15:28:48 +01:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Michael Steenbeek
ef6f09cf5b
Fix formatting [ci skip]
2018-09-29 22:44:19 +02:00
Michael Steenbeek
3d74c51959
Add missing include
2018-09-29 22:44:19 +02:00
Michael Steenbeek
0ad2c74f0a
Do RTL fixes when loading language pack into memory
2018-09-29 22:44:18 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
737d2c490c
clang-format localisation
2018-07-23 16:00:05 +02:00
Øystein Dale
934e53869c
Fix memory leaks in localisation
...
Assigning a pointer to std::string appears to only perform a copy and
does not transfer ownership of the pointer, thus the allocated memory is
will never be freed.
Implement a method to construct an std::string from a StringBuilder to
avoid memory leaks when retreiving the contents of a StringBuilder and
storing it in a std::string.
2018-07-18 00:07:48 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Hielke Morsink
8d10bfb5a1
Add namespace closing comments
2018-05-04 22:54:43 +02:00
Ted John
0c71855769
Replace Memory::Copy with std::copy
2018-02-04 12:40:24 +00:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Ted John
02c58a6c5a
Remove custom base Exception class
2018-01-05 18:11:47 +00:00
Michael Steenbeek
b38123924a
Fix object override size ( #6901 )
2018-01-02 17:51:29 +00:00
Michael Steenbeek
2e79aaf54c
Fold vehicle name into regular name
2017-12-22 15:28:41 +01:00
Ted John
14490ad45b
Refactor, use .empty() in LanguagePack.cpp
2017-12-16 12:06:00 +00:00
Michael Steenbeek
2a509c2c02
Return null pointer if an override is not specified, rather than an empty string
2017-12-15 12:43:50 +01:00
Michael Steenbeek
65fc7f914f
Fix US English missing almost every string
2017-12-15 12:35:40 +01:00
Ted John
fc6fd9a444
Fix inline sprites
2017-12-14 14:38:14 +01:00
Ted John
2ea20552c4
Fix strings by std::string-ing LanguagePack
2017-12-14 14:38:14 +01:00
Hielke Morsink
79aa4a99cf
Use range-based for loops
2017-12-08 11:06:43 +01:00
Michael Steenbeek
c1400a12eb
Allow separate ride and vehicle names per ride entry
2017-11-21 18:55:42 +01:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Michał Janiszewski
c956ccc4d4
Reset the string builder rather than overwrite it
2017-08-02 23:54:49 +02:00