Commit Graph

25 Commits (43980639de7bd654a20982830798927b88d195d6)

Author SHA1 Message Date
Patric Stout 68f9925cd4
Codechange: use \u to indicate unicode chars in strings (#8379)
With \x, we sometimes had to do the "" trick, as the length is not
predefined. With C++11 bringing \u to the specs, which has a preset
length, we no longer need the "" trick.

We set the strings to u8, to ensure all compilers use UTF-8 encoding
for the \u characters.

This was triggered by newer CLangs, which start to warn if you
use "" in the middle of a string, wondering if that was your
intention. It is a good question. And this is our answer :)
4 years ago
Michael Lutz 63ccb36ef3 Codechange: Use std::string for most of the user-settable custom names. 4 years ago
glx ee7a8eebca Codechange: Replace FOR_ALL_TOWNS with range-based for loops 5 years ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
JMcKiern 04f659e768 Fix: Some typos found using codespell 5 years ago
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 5 years ago
nikolas 4fc1b2baae Fix: Grammar in a bunch of comments (#7054) 5 years ago
frosch bed0370ad1 (svn r27187) -Fix: Code style. 9 years ago
rubidium 6ad6845f8c (svn r26510) -Codechange: use memcpy instead of strncpy in the town name replace word function since we never want to add a '\0' anyway, and we know the exact length too 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
frosch 55502341ac (svn r26346) -Fix [FS#5870]: Call Layouter::ReduceLineCache from GenerateTownName in all cases. 10 years ago
rubidium 9f6b8aea49 (svn r26313) -Codechange: use a set for finding unique town names instead of iterating all just created town names (MJP) 10 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
smatz 597ef4e7b1 (svn r23759) -Fix (r17612)[FS#4951]: the check for duplicate town names wasn't really working 13 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
alberth 4af8c2d5e1 (svn r23704) -Doc: Doxygen comment fixes and additions. 13 years ago
rubidium 1a515e6344 (svn r22405) -Document: some more "random-ish" tidbits 13 years ago
yexo 0e17cbc9f8 (svn r22258) -Codechange: introduce a wrapper class to clean up the arguments to FormatString 13 years ago
yexo 12e0f28229 (svn r21440) -Codechange: pass a pointer to just past the end of the argv array around in FormatString and friends 14 years ago
rubidium 5c9c3f1acf (svn r21414) -Codechange: limit town name by amount of characters, not bytes 14 years ago
frosch 478da38d2b (svn r21192) -Fix (r15505)[FS#4226]: Use non-interactive randomness for townnames on map generation, so they are controlled by the generation-seed as well. 14 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
smatz 1da745c9ad (svn r17612) -Feature: possibility to choose (randomise or enter custom) town name before its creation (original patch by Terkhen) 15 years ago
smatz 662ef3173b (svn r17597) -Codechange: rename namegen* to townname* 15 years ago