David Philippi
f231fb12e0
merged patch #714 by silene
...
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
David Philippi
4852283ab3
applied patch from bug #673
2007-02-07 17:34:45 +00:00
Jérémy Rosen
16771cd619
fix wose death anim, fix WML being broken.
...
I will port the wose fix to 1.2 myself if it is needed
2007-01-12 23:09:05 +00:00
Mark de Wever
7da33efd90
Changes on commits 2006-11-18T15:21:49Z!koraq@xs4all.nl and 2006-11-18T15:25:14Z!koraq@xs4all.nl;
...
grzywacz told me on IRC that there's already an integer to string
conversion template.
So switched the modulo routine to this template and removed the now
obsolete function.
2006-11-18 20:15:32 +00:00
Mark de Wever
090ad8ba82
added an integer to string function
2006-11-18 15:21:49 +00:00
John W. C. McNabb
c165ad2cde
Change new TC function to RC function and restore old
...
TC function definition.
2006-11-17 01:23:03 +00:00
John W. C. McNabb
1668e073d0
update to paranthetical_split
2006-11-17 00:16:56 +00:00
John W. C. McNabb
735bc2afaf
Step towards TC upgrade
2006-11-05 17:45:32 +00:00
John W. C. McNabb
b58e2d8f3a
Added Parenthetical_split function.
2006-11-02 19:42:49 +00:00
Serge Martin
7ab1f545f0
don't handle format char at end.
...
fix https://gna.org/bugs/?7197
2006-09-28 10:46:57 +00:00
Patrick Parker
4e24eb8bd2
refactored chat commands and fixed /ignore add foo"bar
2006-05-10 01:59:17 +00:00
Dominic Bolin
934d32b044
update project file; add wildcard string matching to some server functions
2006-05-09 21:24:26 +00:00
Dominic Bolin
af1d7ba478
use any of 'yes','on','true' for boolean strings
2006-04-27 20:25:04 +00:00
Jörg Hinrichs
8674b86082
[[vc++ and inclusion handling fixes]]
...
- changed include paths to be relative to source root
- removed some unnecessary includes
- added some includes of global.hpp to editor files to prevent useless vc++ compiler warnings
- Extended vc++ project files
- fixed the bug of having to press escape two times in a continuous replay to get back to the titlescreen
2006-01-03 20:04:50 +00:00
John W. C. McNabb
0c56b20f75
cleanup of team color code
2005-12-15 17:33:20 +00:00
John W. C. McNabb
c6d4551563
modifications to team_rgb
2005-12-12 04:09:50 +00:00
András Salamon
fd25958376
unit mods now round towards original value instead of truncating;
...
also refactor the code
2005-11-11 20:26:20 +00:00
Philippe Plantier
46b8676598
(actually) fixed #14494
2005-09-12 21:33:34 +00:00
András Salamon
8d25fb99a6
codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
...
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5
ran codeclean against files
2005-06-04 19:16:06 +00:00
Philippe Plantier
d56ef59dbb
Removed the capitalization functions from help.cpp,
...
...and put them in string_utils.cpp
Made them use toupper on MacOSX, instead of towupper
2005-04-24 11:58:04 +00:00
Yann Dirson
6490ba3b4f
moved vegettext() to string_utils,
...
since it is a wrapper around a higher-level function in there
2005-04-12 22:03:42 +00:00
Yann Dirson
4f78ca79b7
string_utils dependency cleanup
2005-04-12 21:04:03 +00:00
Philippe Plantier
0485aac51b
Made variable_set use a get_variable_const method,
...
...which returns a const tstring&, to allow the code to build in
MSVC6.
2005-04-05 18:32:31 +00:00
Philippe Plantier
ba195ecd8a
[[Attack some problems with data serialization in saves]]
...
* Made serialized data be saved as untranslated. To achieve this, added the
t_string class, which encapsulates a translatable string.
* Completely rewrote the (text) WML parser, making it use a tokenizer / parser
architecture. The parser is now much more strict and validates a WML grammar.
- Change to the WML syntax: pluses are now ignored, spaces are now forbidden
in WML keys
* Rewrote the way the variables are interpolated. There is no more default
interpolation, however, the vconfig class was added, which provides a
variable-interpolating proxy to config objects.
* There is still an important known bug: this is impossible to load textmode
save games now, because the statistics module saves some WML with spaces in
keys, which the parser refuses. I am commiting anyway to respect the string
freeze; the fix for this bug will come tomorrow
Hoping I do not break everything...
2005-03-27 23:06:17 +00:00
Guillaume Melquiond
73feb6911e
Remove illegal read for empty strings.
...
Sanitize utf8 iterators (const members, no empty constructor).
2005-03-26 15:32:26 +00:00
Jon Daniel
cf82d4c121
added ucs2_string_to_utf8_string and utf8_string_to_ucs2_string functions
2005-03-12 04:42:59 +00:00
Jon Daniel
950a4f62b5
Changed ucs4_string typedef to std::vector<Uint32>
2005-03-06 01:55:38 +00:00
Jon Daniel
9e650863a4
added typedef std::string utf8_string...
...
and typedef std::vector<wchar_t> ucs4_string to make the type of
encoding clear. Feel free to use them or not.
2005-03-04 13:10:46 +00:00
Jon Daniel
13357219dd
Added a typedef std::vector<Uint16> ucs2_string...
...
...because they are easy to pass to SDL_ttf.
2005-03-04 03:31:42 +00:00
Philippe Plantier
1949375acf
Replaced split_utf8_string by a new "utf8_iterator" class
...
Moved all utf8 encoding / decoding-related code to
serialization/string_utils.hpp
2005-03-03 21:52:40 +00:00
Guillaume Melquiond
2ab05941b5
Completely remove string functions from config.cpp.
2005-02-20 21:45:22 +00:00
Guillaume Melquiond
e77411ae2a
Split the preprocessor from the config system. No feature change yet.
2005-02-20 19:22:31 +00:00