Commit Graph

287 Commits (jgrpp)

Author SHA1 Message Date
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
Jonathan G Rennison 5e6d283463 Merge branch 'master' into jgrpp
Remove the viewport sign cache as this is now superseded by the kd tree
implementation

# Conflicts:
#	src/crashlog.cpp
#	src/lang/english.txt
#	src/misc.cpp
#	src/pathfinder/follow_track.hpp
#	src/pbs.cpp
#	src/rail_cmd.cpp
#	src/saveload/vehicle_sl.cpp
#	src/settings.cpp
#	src/settings_gui.cpp
#	src/ship_cmd.cpp
#	src/station.cpp
#	src/station_base.h
#	src/station_cmd.cpp
#	src/table/settings.ini
#	src/thread/thread_morphos.cpp
#	src/town_cmd.cpp
#	src/train_cmd.cpp
#	src/viewport.cpp
#	src/waypoint.cpp
5 years ago
Patric Stout 36105841b9 Codechange: ICU_SORT is in reality ICU_I18N (according to their CMake files)
By naming it in a different way, things get a bit confusing.
Especially if we are switching to CMake, which autodetects these
things, we need to use the name the authors of ICU gave it; not
our interpertation of that name.
5 years ago
Jonathan G Rennison 4f1d54564e Merge branch 'master' into jgrpp
# Conflicts:
#	src/debug.cpp
6 years ago
glx c540d72445 Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined macro _WIN32 6 years ago
Jonathan G Rennison 2003a86932 Merge remote-tracking branch 'origin/master' into jgrpp
# Conflicts:
#	src/string.cpp
6 years ago
Michael Lutz 4bf216993a Add: [OSX] Native text caret handling. 6 years ago
Michael Lutz 8d7cd6a526 Add: [OSX] Native natural sort implementation. 6 years ago
Jonathan G Rennison e735c1a51a Merge branch 'master' into jgrpp
# Conflicts:
#	src/aircraft_cmd.cpp
#	src/autoreplace_cmd.cpp
#	src/pathfinder/follow_track.hpp
#	src/pathfinder/yapf/yapf_rail.cpp
#	src/saveload/afterload.cpp
#	src/saveload/saveload.cpp
#	src/script/api/ai/ai_station.hpp.sq
#	src/script/api/game/game_station.hpp.sq
#	src/script/api/script_station.hpp
#	src/track_func.h
#	src/vehicle_base.h
6 years ago
Charles Pigott 52ed3bcbaa Remove: A few bits of dead code 6 years ago
Charles Pigott e0c0394e37 Fix: Remove various dead or unnecessary assignments 6 years ago
Jonathan G Rennison b48a6ef368 Revert "Revert "Add: [Win32] Uniscribe configure options for MinGW targets.""
This reverts commit ca4a4869a2.
6 years ago
Jonathan G Rennison ca4a4869a2 Revert "Add: [Win32] Uniscribe configure options for MinGW targets."
Revert "Change: [Win32] Use Uniscribe instead of ICU for text caret handling."
Revert "Change: [Win32/MSVC] Make the Uniscribe text layouter the windows default and remove usage of the deprecated ICU layout libs."
Revert "Add: [Win32] Text layout using the native Windows Uniscribe library."
Revert "Codechange: Move ParagraphLayouter-specific functions into factory classes instead of relying on overloads."
Revert "Add: [Win32] Native natural sort implementation."

This reverts commit cd966f3810.
This reverts commit eec3f40931.
This reverts commit 33829dc6ab.
This reverts commit 768a31bfe3.
This reverts commit a4278c302b.
This reverts commit f4394debdc.

This is to fix various problems and crashes with text rendering
and font handling on Windows.

See #58.
6 years ago
Jonathan G Rennison 8e9d68048a Merge branch 'master' into jgrpp
# Conflicts:
#	src/string.cpp
6 years ago
Michael Lutz eec3f40931 Change: [Win32] Use Uniscribe instead of ICU for text caret handling.
This removes the need for the ICU lib on Windows.
6 years ago
Michael Lutz f4394debdc Add: [Win32] Native natural sort implementation. 6 years ago
Jonathan G Rennison 8317eac918 Merge branch 'save_ext' into jgrpp
# Conflicts:
#	src/lang/german.txt
#	src/lang/korean.txt
#	src/lang/traditional_chinese.txt
#	src/window.cpp
7 years ago
Jonathan G Rennison dd0666c5f4 Add support for save/loading std::strings. 7 years ago
Jonathan G Rennison 1276f5345d Implement a natural sort function to use if ICU is not usable. 7 years ago
Jonathan G Rennison f0fee802a9 Merge branch 'tracerestrict-sx' into jgrpp
# Conflicts:
#	src/lang/english.txt
#	src/settings_gui.cpp
#	src/settings_type.h
#	src/table/settings.ini
#	src/vehicle_gui.cpp
8 years ago
Jonathan G Rennison ed33a62bcd Merge branch 'tracerestrict' into tracerestrict-sx 8 years ago
Jonathan G Rennison 8ec1b2200e Change tracerestrict weight ratio properties to use decimals, and the weight unit.
Add {POWER_WEIGHT_RATIO} and {FORCE_WEIGHT_RATIO} string codes.
8 years ago
Jonathan G Rennison bbe4ea7f50 Log truncated revision strings at debug level 1 instead of 0. 9 years ago
Jonathan G Rennison ef5ecdb2c7 Merge branch 'git_findversion_fix' into save_ext 9 years ago
Jonathan G Rennison 6088c7fc24 Merge branch 'tracerestrict' into tracerestrict-sx 9 years ago
Jonathan G Rennison 88c150abf7 Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
michi_cc 35b77450f8 (svn r27380) -Fix: [Win32] Compilation with MSVC2015. 9 years ago
michi_cc 0cd198c798 (svn r27380) -Fix: [Win32] Compilation with MSVC2015. 9 years ago
rubidium 562c269770 (svn r27377) -Codechange: use the pkg-config files of ICU as well. Since they are split into separate libraries it becomes possible to split RTL support for natural sorting, although the effect will be minimal 9 years ago
rubidium eb4b6a08d0 (svn r27377) -Codechange: use the pkg-config files of ICU as well. Since they are split into separate libraries it becomes possible to split RTL support for natural sorting, although the effect will be minimal 9 years ago
rubidium 69fac508c3 (svn r27367) -Codechange: make a distinction between the layouting part of ICU (lx) or the sorting/collation part of ICU (i18n) 9 years ago
rubidium ee700fd3b1 (svn r27367) -Codechange: make a distinction between the layouting part of ICU (lx) or the sorting/collation part of ICU (i18n) 9 years ago
Jonathan G Rennison 4508cfbf93 Add format-style versions of SlError and SlErrorCorrupt. 9 years ago
rubidium 0c2f4bdc2b (svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces) 10 years ago
rubidium d534c80e94 (svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces) 10 years ago
rubidium e251d82f96 (svn r26507) -Cleanup: remove now unused custom strndup implementation 10 years ago
rubidium db8d208bfc (svn r26507) -Cleanup: remove now unused custom strndup implementation 10 years ago
rubidium b886c8db8c (svn r26506) -Codechange: replace most of vsnprintf with vseprintf 10 years ago
rubidium e61fe21237 (svn r26506) -Codechange: replace most of vsnprintf with vseprintf 10 years ago
rubidium baa9dd4b5d (svn r26500) -Cleanup: remove unused snprintf implementation 10 years ago
rubidium 99452c51ce (svn r26500) -Cleanup: remove unused snprintf implementation 10 years ago
rubidium 4768fae6d4 (svn r26498) -Add: method for duplicating strings with similar behaviours as strecpy and strecat; give end pointer instead of a size 10 years ago
rubidium 382ca0941f (svn r26498) -Add: method for duplicating strings with similar behaviours as strecpy and strecat; give end pointer instead of a size 10 years ago
frosch 24c7134bff (svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat. 10 years ago
frosch ef4c2ce031 (svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat. 10 years ago
rubidium 2be4215f43 (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 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 67f3c2a764 (svn r26472) -Cleanup: pointless instance variable 10 years ago
rubidium ddc35bc252 (svn r26472) -Cleanup: pointless instance variable 10 years ago
fonsinchen 8462103115 (svn r26384) -Fix [FS#5924]: Return correct values from ICU iterators in case of leading or trailing whitespace 10 years ago
fonsinchen d0aa98ef7d (svn r26384) -Fix [FS#5924]: Return correct values from ICU iterators in case of leading or trailing whitespace 10 years ago
rubidium d2598167ad (svn r26124) -Fix: make sure all members of the default string iterator are initialised 11 years ago
rubidium 5e3aa72855 (svn r26124) -Fix: make sure all members of the default string iterator are initialised 11 years ago
rubidium fd748703ba (svn r25952) -Fix [FS#5719]: do not skip numbers when skipping spaces and other sorting 'improving' characters 11 years ago
rubidium cdd6752ead (svn r25952) -Fix [FS#5719]: do not skip numbers when skipping spaces and other sorting 'improving' characters 11 years ago
michi_cc e6096cb8af (svn r25653) -Add: Caret movement by words for CJK languages. 11 years ago
michi_cc 76367f6bf1 (svn r25653) -Add: Caret movement by words for CJK languages. 11 years ago
michi_cc 4248d90937 (svn r25652) -Fix: Improve text caret movement for complex scripts. 11 years ago
michi_cc e7dc14b25a (svn r25652) -Fix: Improve text caret movement for complex scripts. 11 years ago
rubidium 87a1860945 (svn r25555) -Fix [FS#5632]: [Script] Texts from scripts were not validated before they were shown, causing an assertion to trigger 11 years ago
rubidium 4c443bce5c (svn r25555) -Fix [FS#5632]: [Script] Texts from scripts were not validated before they were shown, causing an assertion to trigger 11 years ago
alberth f618b6e2f9 (svn r25527) -Fix[FS#5621]: strndup should not examine strings beyond its upper limit. 11 years ago
alberth 631540c400 (svn r25527) -Fix[FS#5621]: strndup should not examine strings beyond its upper limit. 11 years ago
rubidium 2771de7f34 (svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it 11 years ago
rubidium 7c0f34130c (svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it 11 years ago
frosch 356ecf05c4 (svn r24983) -Change: Apply the same name sorting rules to content and NewGRF list as for the server list. 12 years ago
frosch 3e02890b73 (svn r24983) -Change: Apply the same name sorting rules to content and NewGRF list as for the server list. 12 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
yexo d9f3912c59 (svn r23816) -Fix (r23635, r23805): make SCC_ENCODED the first entry in the StringControlCode enum since it's value is not allowed to change 13 years ago
yexo 2c99805117 (svn r23816) -Fix (r23635, r23805): make SCC_ENCODED the first entry in the StringControlCode enum since it's value is not allowed to change 13 years ago
smatz cf54bc425f (svn r23706) -Codechange: prevent 'unknown command' doxygen errors 13 years ago
smatz bcd3f2bb59 (svn r23706) -Codechange: prevent 'unknown command' doxygen errors 13 years ago
truebrain 2b381d0765 (svn r23603) -Add: support for control commands in strings, in both network and safe/load (Rubidium) 13 years ago
truebrain 5cda1d7c90 (svn r23603) -Add: support for control commands in strings, in both network and safe/load (Rubidium) 13 years ago
rubidium 8e4b6c3055 (svn r23590) -Codechange: make the string validation settings better expandable 13 years ago
rubidium fefe22b4aa (svn r23590) -Codechange: make the string validation settings better expandable 13 years ago
alberth ef58554bd2 (svn r22669) -Codechange: For non-windows, only test for file existence again if strtolower actually changed the name. 13 years ago
alberth d55b380b69 (svn r22669) -Codechange: For non-windows, only test for file existence again if strtolower actually changed the name. 13 years ago
rubidium 6e9122828e (svn r22406) -Document: some more "random-ish" tidbits 13 years ago
rubidium 5a620d1c65 (svn r22406) -Document: some more "random-ish" tidbits 13 years ago
rubidium 8a08de2f44 (svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms 13 years ago
rubidium 59e42ea178 (svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms 13 years ago
rubidium 0cf2ef83f0 (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 14 years ago
rubidium 9ca4b629cd (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 14 years ago
rubidium 4f51c9d3cd (svn r21404) -Add: method for getting the length of an Utf8 string in characters 14 years ago
rubidium 440a529701 (svn r21404) -Add: method for getting the length of an Utf8 string in characters 14 years ago
terkhen 5139fa9a23 (svn r21343) -Add: Function that compares strings using case insensitive natural sort. 14 years ago
terkhen 4b944cb13e (svn r21343) -Add: Function that compares strings using case insensitive natural sort. 14 years ago
rubidium e03fdc159d (svn r21133) -Add: function to check the validity of a string (without modifying it) 14 years ago
rubidium 17b514ccd1 (svn r21133) -Add: function to check the validity of a string (without modifying it) 14 years ago
frosch c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium f48fca6bfc (svn r20220) -Fix [FS#3974]: strip non-printable characters before showing it in an edit box, so when renaming a vehicle type you won't get the "SETX stuff" that some NewGRFs use 14 years ago
rubidium 80cc566553 (svn r20220) -Fix [FS#3974]: strip non-printable characters before showing it in an edit box, so when renaming a vehicle type you won't get the "SETX stuff" that some NewGRFs use 14 years ago
alberth 0dd71a0d7e (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 14 years ago
alberth 604e56adc2 (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 14 years ago
rubidium be79aba6eb (svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some cases (Krille) 14 years ago
rubidium e3df7caf18 (svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some cases (Krille) 14 years ago
rubidium dcf7d2de54 (svn r19703) -Add: hexadecimal string filter 14 years ago
rubidium 8aad995e32 (svn r19703) -Add: hexadecimal string filter 14 years ago
rubidium 7e05c1fcd0 (svn r19158) -Fix (r19149): MSVC 64 bits compile warning 15 years ago
rubidium 3c5d19e411 (svn r19158) -Fix (r19149): MSVC 64 bits compile warning 15 years ago
rubidium 7353e104ba (svn r19149) -Codechange: make our vsnprintf implementation for Windows more POSIX compliant (adf88) 15 years ago
rubidium a6112670d0 (svn r19149) -Codechange: make our vsnprintf implementation for Windows more POSIX compliant (adf88) 15 years ago
rubidium 28cc56d11d (svn r19148) -Fix [FS#3627]: [v]seprintf should return the number of added characters excluding '\0' on truncation (adf88) 15 years ago
rubidium 1b0e78c588 (svn r19148) -Fix [FS#3627]: [v]seprintf should return the number of added characters excluding '\0' on truncation (adf88) 15 years ago
glx 47636b3093 (svn r18919) -Fix (r15371): strcasestr() return should not be const 15 years ago
glx 918b3aff5e (svn r18919) -Fix (r15371): strcasestr() return should not be const 15 years ago
rubidium c3525c3c5c (svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for the NewGRF parameter list 15 years ago
rubidium a5d005dd53 (svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for the NewGRF parameter list 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 510541afac (svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary. 15 years ago
rubidium dc161c72e0 (svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary. 15 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 15 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 15 years ago
rubidium 34bd9ee636 (svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns. 15 years ago
rubidium 86ca408d46 (svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns. 15 years ago
smatz 9c6d6c0d0e (svn r15625) -Codechange: remove unneeded assert 15 years ago
smatz c3a7e6b693 (svn r15625) -Codechange: remove unneeded assert 15 years ago
rubidium 057ceec51c (svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ship sprite) as characters in input like filenames or text that is sent over the network. 16 years ago
rubidium 13bc604fde (svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ship sprite) as characters in input like filenames or text that is sent over the network. 16 years ago
rubidium e856287029 (svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances. 16 years ago
rubidium cecc3863cd (svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances. 16 years ago
rubidium 0ffb019103 (svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined. 16 years ago
rubidium 35c5da08c5 (svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined. 16 years ago
glx 47a61fb10c (svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel 16 years ago
glx 6d6e2232ea (svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium 1bc8e3f536 (svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so. 16 years ago
rubidium 07e135547e (svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so. 16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 16 years ago
skidd13 609a635fac (svn r14557) -Codechange: Remove a redundant line of code 16 years ago
skidd13 6d94be75e9 (svn r14557) -Codechange: Remove a redundant line of code 16 years ago
skidd13 5b62536381 (svn r14546) -Codechange: Unify string(cpy|cat) functions
-Doc: string(cpy|cat) functions
16 years ago
skidd13 38efdc8222 (svn r14546) -Codechange: Unify string(cpy|cat) functions
-Doc: string(cpy|cat) functions
16 years ago
rubidium 56d0990d62 (svn r14541) -Fix (r14540): mingw didn't like it :( 16 years ago
rubidium da0a0ef8ca (svn r14541) -Fix (r14540): mingw didn't like it :( 16 years ago
rubidium 0d2f84e117 (svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly. 16 years ago
rubidium 0d254e8914 (svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly. 16 years ago
glx 4bb40a7d44 (svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms 16 years ago
glx 2ddb86eea5 (svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms 16 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago