summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-18Removed some 'const' keywords from value returnsThorbjørn Lindeijer1-3/+3
It makes no sense to mark a return value as const when it is returned by value. This only makes sense if the return value is passed by reference, in order to prevent the receiver from modifying the value. Also made some other small adjustments. A std::string does not need to be initialized to "" explicitly and getSafeUtf8String could take its parameter by reference. Reviewed-by: Yohann Ferreira
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-09Made the client able to remove the port from update urls.Yohann Ferreira1-0/+11
Resolves: Mana-Mantis #381. Reviewed-by: Ablu.
2011-01-13Moved the normalize() function in strungUtils where it belongs.Yohann Ferreira1-0/+11
(Preparation for bringing a smaller item loading refactoring patch.) Trivial.
2010-09-27Centralized String to bool conversion into the client.Yohann Ferreira1-2/+3
The former XML::getBoolProperty() had a potential memleak and was unsafe when dealing with unknown values. Reviewed-by: CodyMartin. Resolves: Mana-Mantis #213.
2010-09-25Merge branch '1.0'Thorbjørn Lindeijer1-0/+4
Conflicts: src/actorspritemanager.h src/beingmanager.cpp src/game.cpp src/gui/beingpopup.cpp src/gui/chat.cpp src/gui/chat.h src/gui/inventorywindow.h src/gui/itempopup.cpp src/gui/socialwindow.cpp src/gui/statuswindow.cpp src/gui/widgets/chattab.cpp src/gui/widgets/chattab.h src/net/tmwa/inventoryhandler.cpp src/net/tmwa/partyhandler.cpp src/party.cpp src/sound.cpp src/utils/stringutils.cpp src/utils/stringutils.h
2010-08-29Move handling of autocomplete and input history into TextFieldJared Adams1-0/+4
Reviewed-by: Freeyorp
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-0/+8
Please note that I didn't turned all the getValue() call into new ones, simply because I have to have config object initiated which is not forcefully the case the branding file. Resolves: Manasource Mantis #170.
2010-05-27Fix drawing incorrect utf8 strings issue.Andrei Karas1-0/+2
Reviewed-by: Bertram Resolve: Manasource Mantis #143
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-08Small refactoring in chat auto completingAndrei Karas1-1/+1
2010-01-07Chat auto completingAndrei Karas1-0/+4
2010-01-07Fix a typoFreeyorp1-1/+1
2010-01-06Fixes so mapreader ignores the case of object typesChuck Miller1-0/+9
This will decrease warnings in the log file by a good bit
2009-12-10Avoiding compiler warnings with gcc 4.4.0Stefan Dombrowski1-1/+1
With the changed __attribute__ it compiles now without warnings on gcc 4.4.0. For other compiler this should work too, because this format is already used for log() in log.h.
2009-11-03Remove more _SUPPORT ifdefs and do some cleanupJared Adams1-0/+10
2009-10-05Hide color codes from speech textAndrei Karas1-0/+8
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-0/+11
2009-04-29Changed palette colors to be once again stored in a human readableTametomo1-0/+8
format once again. This was originally reverted because it caused a regression on Windows, but not Linux, which was later found out to be because there's a Linux kernel function which will convert hex strings into an integer format, while Windows doesn't share the same luxury. So, to avoid any issues, this commit adds an atox (ascii to hex) string utility, and uses it when parsing hex strings for colors from the configuration file. Also ensured that people who have colors saved in the old, raw integer format can get their colors converted to hex values. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-13Fixed @'s in a user's nickDavid Athay1-0/+8
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-0/+68
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.