Age | Commit message (Collapse) | Author |
|
|
|
again if strtolower actually changed the name.
|
|
|
|
cross-compiling, and strndup is available in the binary for more exotic platforms
|
|
more likely to be updated [o-s].
|
|
|
|
natural sort.
|
|
modifying it)
|
|
|
|
|
|
it in an edit box, so when renaming a vehicle type you won't get the "SETX stuff" that some NewGRFs use
|
|
|
|
cases (Krille)
|
|
|
|
|
|
POSIX compliant (adf88)
|
|
characters excluding '\0' on truncation (adf88)
|
|
|
|
the NewGRF parameter list
|
|
|
|
earlier than necessary.
|
|
sources too
|
|
|
|
|
|
ship sprite) as characters in input like filenames or text that is sent over the network.
|
|
strcasecmp under some circumstances.
|
|
_GNU_SOURCE isn't defined.
|
|
to squirrel
|
|
|
|
the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
|
|
|
|
|
|
-Doc: string(cpy|cat) functions
|
|
|
|
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.
|
|
on all platforms
|
|
something more than whitespace as description of files that don't have a description.
|
|
unneeded include from openttd.h.
|
|
when it's not necessary.
|
|
3.14 or superior, as it now have snprintf() and vsnprintf conform to C99
|
|
logical place and remove about 50% of the includes of 'functions.h'
|
|
it is really needed.
|
|
logical locations.
|
|
style
|
|
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.
|
|
The end of the preliminary work is near
|
|
don't terminate the string when an invalid encoding is encountered, but only focus on maximum length.
|
|
NL at EOF
|
|
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)
|
|
MD5SUM and use it.
|