summaryrefslogtreecommitdiff
path: root/src/string.cpp
AgeCommit message (Collapse)Author
2011-12-19(svn r23603) -Add: support for control commands in strings, in both network ↵truebrain
and safe/load (Rubidium)
2011-12-18(svn r23590) -Codechange: make the string validation settings better expandablerubidium
2011-07-16(svn r22669) -Codechange: For non-windows, only test for file existence ↵alberth
again if strtolower actually changed the name.
2011-05-01(svn r22406) -Document: some more "random-ish" tidbitsrubidium
2011-03-03(svn r22177) -Fix: make sure the right endianness is chosen with ↵rubidium
cross-compiling, and strndup is available in the binary for more exotic platforms
2011-01-18(svn r21846) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updated [o-s].
2010-12-05(svn r21404) -Add: method for getting the length of an Utf8 string in charactersrubidium
2010-11-27(svn r21343) -Add: Function that compares strings using case insensitive ↵terkhen
natural sort.
2010-11-10(svn r21133) -Add: function to check the validity of a string (without ↵rubidium
modifying it)
2010-08-01(svn r20286) -Codechange: Unify end of doxygen comments.frosch
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-25(svn r20220) -Fix [FS#3974]: strip non-printable characters before showing ↵rubidium
it in an edit box, so when renaming a vehicle type you won't get the "SETX stuff" that some NewGRFs use
2010-06-27(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.alberth
2010-05-21(svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some ↵rubidium
cases (Krille)
2010-04-24(svn r19703) -Add: hexadecimal string filterrubidium
2010-02-18(svn r19158) -Fix (r19149): MSVC 64 bits compile warningrubidium
2010-02-17(svn r19149) -Codechange: make our vsnprintf implementation for Windows more ↵rubidium
POSIX compliant (adf88)
2010-02-17(svn r19148) -Fix [FS#3627]: [v]seprintf should return the number of added ↵rubidium
characters excluding '\0' on truncation (adf88)
2010-01-26(svn r18919) -Fix (r15371): strcasestr() return should not be constglx
2009-10-31(svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for ↵rubidium
the NewGRF parameter list
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-04-06(svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character ↵rubidium
earlier than necessary.
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-06(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.rubidium
2009-03-06(svn r15625) -Codechange: remove unneeded assertsmatz
2009-02-21(svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ↵rubidium
ship sprite) as characters in input like filenames or text that is sent over the network.
2009-02-06(svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define ↵rubidium
strcasecmp under some circumstances.
2009-02-06(svn r15371) -Codechange: add an implementation of strcasestr for when ↵rubidium
_GNU_SOURCE isn't defined.
2009-02-02(svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string ↵glx
to squirrel
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-18(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from ↵rubidium
the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-11-02(svn r14557) -Codechange: Remove a redundant line of codeskidd13
2008-10-29(svn r14546) -Codechange: Unify string(cpy|cat) functionsskidd13
-Doc: string(cpy|cat) functions
2008-10-28(svn r14541) -Fix (r14540): mingw didn't like it :(rubidium
2008-10-28(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf ↵rubidium
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-08-24(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist ↵glx
on all platforms
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-01-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.
2008-01-07(svn r11777) -Codechange: split the string header and make do not include it ↵rubidium
when it's not necessary.
2008-01-02(svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime ↵glx
3.14 or superior, as it now have snprintf() and vsnprintf conform to C99
2007-12-25(svn r11692) -Codechange: move some functions from 'functions.h' to a more ↵rubidium
logical place and remove about 50% of the includes of 'functions.h'
2007-12-25(svn r11691) -Codechange: move+rename helpers.hpp and only include it when ↵rubidium
it is really needed.
2007-12-21(svn r11674) -Codechange: refactor some functions out of macros.h into more ↵rubidium
logical locations.
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-07-14(svn r10566) -Fix [FS#1025]: a NewGRF could have a information message that ↵rubidium
is too long for the internal buffers to handle. We should not crash on such a case even though the message is too big for the window anyway.
2007-04-04(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. ↵belugas
The end of the preliminary work is near
2007-03-10(svn r9083) -Codechange: Be more lenient when trimming UTF-8 strings and ↵Darkvater
don't terminate the string when an invalid encoding is encountered, but only focus on maximum length.
2007-03-05(svn r9015) -Fixtron
NL at EOF
2007-03-05(svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines ↵Darkvater
also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'. -Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)