summaryrefslogtreecommitdiff
path: root/src/string_func.h
AgeCommit message (Collapse)Author
2021-01-08Revert c1fddb9, 639cfa4: "Codechange: Check if access __attribute__ is ↵Patric Stout
supported before trying to use it." (#8526) This reverts commit c1fddb9a6ae5c3af6865461a7295788a341011a2 and 639cfa43d23aa142cabbf2f08ec20a2133b0503e. access_mode "none" is only supported by GCC11, but introduced after it branched. So there are GCC11.0s out there that do not support it. We will have to wait for GCC11.1 to hit before we can re-add this.
2021-01-08Codechange: Use access __attribute__ to silence warnings in GCCmilek7
2020-12-27Codechange: Store file search paths as std::string.Michael Lutz
2020-06-27Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings ↵Charles Pigott
that followed
2020-05-21Codechange: Use std::string in INI file parsing.Michael Lutz
2020-05-21Codechange: Use std::string when translating TTDP NewGRF string codes.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2014-04-25(svn r26513) -Fix: 9x compilation, maybefrosch
2014-04-25(svn r26507) -Cleanup: remove now unused custom strndup implementationrubidium
2014-04-24(svn r26506) -Codechange: replace most of vsnprintf with vseprintfrubidium
2014-04-24(svn r26498) -Add: method for duplicating strings with similar behaviours as ↵rubidium
strecpy and strecat; give end pointer instead of a size
2014-04-23(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy ↵frosch
and strecat.
2013-08-05(svn r25653) -Add: Caret movement by words for CJK languages.michi_cc
2013-08-05(svn r25652) -Fix: Improve text caret movement for complex scripts.michi_cc
2013-07-04(svn r25555) -Fix [FS#5632]: [Script] Texts from scripts were not validated ↵rubidium
before they were shown, causing an assertion to trigger
2013-02-09(svn r24983) -Change: Apply the same name sorting rules to content and ↵frosch
NewGRF list as for the server list.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-16(svn r23816) -Fix (r23635, r23805): make SCC_ENCODED the first entry in the ↵yexo
StringControlCode enum since it's value is not allowed to change
2011-12-18(svn r23590) -Codechange: make the string validation settings better expandablerubidium
2011-09-04(svn r22889) -Fix [FS#4751]: [OSX] MacOSX 10.7 knows already about strndup ↵planetmaker
(leecbaker)
2011-07-16(svn r22669) -Codechange: For non-windows, only test for file existence ↵alberth
again if strtolower actually changed the name.
2011-04-30(svn r22385) -Fix [FS#4603]: strnatcmp is in string.cpp, so it ought to be ↵rubidium
declared in string_func.h.
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-24(svn r21310) -Fix [FS#4259]: apparantly even earlier FreeBSDs had strnduprubidium
2010-11-22(svn r21295) -Fix [FS#4259]: FreeBSD introduced strndup as well (MicRO)rubidium
2010-11-20(svn r21273) -Codechange: Return values should start at the same line.alberth
2010-11-10(svn r21133) -Add: function to check the validity of a string (without ↵rubidium
modifying it)
2010-10-22(svn r21006) -Fix (r21004): don't print the text direction character when ↵rubidium
ICU isn't linked and thus doesn't remove them
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-05-21(svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some ↵rubidium
cases (Krille)
2010-05-19(svn r19859) -Fix (r19853): preprocessor warningglx
2010-05-18(svn r19853) -Fix [FS#3840]: revert r19781 and apply a more sensible version ↵rubidium
with the same effect
2010-01-26(svn r18919) -Fix (r15371): strcasestr() return should not be constglx
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-05-24(svn r16421) -Codechange: do not unnecessarily remove constness or ↵rubidium
unnecessarily add it.
2009-05-10(svn r16269) -Codechange: use gcc's ability to check parameters sent to ↵smatz
printf-like functions -Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
2009-03-06(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.rubidium
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-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.
2008-11-02(svn r14553) -Doc: Add some doxygen commentsskidd13
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-31(svn r14204) -Fix (r7475): when determining length of a string with limited ↵smatz
size, first check if we are not out of bounds already
2008-08-24(svn r14155) -Fix (r14154): wrong commentsglx
2008-08-24(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist ↵glx
on all platforms