Commit Graph

62 Commits

Author SHA1 Message Date
alberth 631540c400 (svn r25527) -Fix[FS#5621]: strndup should not examine strings beyond its upper limit. 2013-06-30 08:29:51 +00:00
rubidium 7c0f34130c (svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it 2013-06-24 18:39:19 +00:00
frosch 3e02890b73 (svn r24983) -Change: Apply the same name sorting rules to content and NewGRF list as for the server list. 2013-02-09 17:31:07 +00:00
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
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 2012-01-16 22:29:25 +00:00
smatz bcd3f2bb59 (svn r23706) -Codechange: prevent 'unknown command' doxygen errors 2012-01-01 17:36:19 +00:00
truebrain 5cda1d7c90 (svn r23603) -Add: support for control commands in strings, in both network and safe/load (Rubidium) 2011-12-19 20:50:44 +00:00
rubidium fefe22b4aa (svn r23590) -Codechange: make the string validation settings better expandable 2011-12-18 18:37:54 +00:00
alberth d55b380b69 (svn r22669) -Codechange: For non-windows, only test for file existence again if strtolower actually changed the name. 2011-07-16 18:43:22 +00:00
rubidium 5a620d1c65 (svn r22406) -Document: some more "random-ish" tidbits 2011-05-01 19:51:52 +00:00
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 2011-03-03 21:43:24 +00:00
rubidium 9ca4b629cd (svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s]. 2011-01-18 23:09:43 +00:00
rubidium 440a529701 (svn r21404) -Add: method for getting the length of an Utf8 string in characters 2010-12-05 22:17:25 +00:00
terkhen 4b944cb13e (svn r21343) -Add: Function that compares strings using case insensitive natural sort. 2010-11-27 22:47:29 +00:00
rubidium 17b514ccd1 (svn r21133) -Add: function to check the validity of a string (without modifying it) 2010-11-10 17:49:14 +00:00
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
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 2010-07-25 23:14:59 +00:00
alberth 604e56adc2 (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 2010-06-27 09:05:10 +00:00
rubidium e3df7caf18 (svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some cases (Krille) 2010-05-21 15:56:19 +00:00
rubidium 8aad995e32 (svn r19703) -Add: hexadecimal string filter 2010-04-24 07:31:58 +00:00
rubidium 3c5d19e411 (svn r19158) -Fix (r19149): MSVC 64 bits compile warning 2010-02-18 01:10:04 +00:00
rubidium a6112670d0 (svn r19149) -Codechange: make our vsnprintf implementation for Windows more POSIX compliant (adf88) 2010-02-17 15:07:09 +00:00
rubidium 1b0e78c588 (svn r19148) -Fix [FS#3627]: [v]seprintf should return the number of added characters excluding '\0' on truncation (adf88) 2010-02-17 13:55:08 +00:00
glx 918b3aff5e (svn r18919) -Fix (r15371): strcasestr() return should not be const 2010-01-26 14:04:56 +00:00
rubidium a5d005dd53 (svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for the NewGRF parameter list 2009-10-31 14:06:16 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium dc161c72e0 (svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary. 2009-04-06 10:05:36 +00:00
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium 86ca408d46 (svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns. 2009-03-06 01:23:25 +00:00
smatz c3a7e6b693 (svn r15625) -Codechange: remove unneeded assert 2009-03-06 00:41:58 +00:00
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. 2009-02-21 00:47:59 +00:00
rubidium cecc3863cd (svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances. 2009-02-06 15:53:48 +00:00
rubidium 35c5da08c5 (svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined. 2009-02-06 11:58:52 +00:00
glx 6d6e2232ea (svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel 2009-02-02 13:46:26 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
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. 2009-01-18 13:12:57 +00:00
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 2009-01-10 00:31:47 +00:00
skidd13 6d94be75e9 (svn r14557) -Codechange: Remove a redundant line of code 2008-11-02 11:41:13 +00:00
skidd13 38efdc8222 (svn r14546) -Codechange: Unify string(cpy|cat) functions
-Doc: string(cpy|cat) functions
2008-10-29 16:30:41 +00:00
rubidium da0a0ef8ca (svn r14541) -Fix (r14540): mingw didn't like it :( 2008-10-28 15:47:42 +00:00
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. 2008-10-28 14:42:31 +00:00
glx 2ddb86eea5 (svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms 2008-08-24 17:02:21 +00:00
rubidium d03994098b (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. 2008-05-06 15:11:33 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 2008-01-07 14:23:25 +00:00
glx 6f7f4adffc (svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime 3.14 or superior, as it now have snprintf() and vsnprintf conform to C99 2008-01-02 18:42:51 +00:00
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 2007-12-25 09:48:53 +00:00
rubidium 01e20c9140 (svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations. 2007-12-21 19:21:21 +00:00