summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-1/+1
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2024-01-24Fixed a few coding errors the compiler complained aboutThorbjørn Lindeijer1-1/+1
2012-03-18Removed some 'const' keywords from value returnsThorbjørn Lindeijer1-4/+4
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-1/+48
Resolves: Mana-Mantis #381. Reviewed-by: Ablu.
2011-01-13Moved the normalize() function in strungUtils where it belongs.Yohann Ferreira1-0/+6
(Preparation for bringing a smaller item loading refactoring patch.) Trivial.
2010-09-27Centralized String to bool conversion into the client.Yohann Ferreira1-8/+9
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/+35
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-1/+36
Reviewed-by: Freeyorp
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-2/+14
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/+11
Reviewed-by: Bertram Resolve: Manasource Mantis #143
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-1/+7
Themes can now control the colors they use. Colors in the Viewport (being names, particles, etc) can still be changed by the user. Also make ProgressBars more easily colored. DyePalette was made more flexible in the process. Also fixes comparing strings of different lengths insensitively. Reviewed-by: Thorbjørn Lindeijer
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-24Autocomplete names with quotes if the string begins with a / or @ (commands)Blue Sans Douze1-1/+1
2010-01-08Small refactoring in chat auto completingAndrei Karas1-1/+1
2010-01-07Chat auto completingAndrei Karas1-0/+18
2010-01-06Fixes so mapreader ignores the case of object typesChuck Miller1-0/+6
This will decrease warnings in the log file by a good bit
2009-11-03Remove more _SUPPORT ifdefs and do some cleanupJared Adams1-0/+17
2009-10-05Hide color codes from speech textAndrei Karas1-0/+12
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-0/+24
2009-04-29Changed palette colors to be once again stored in a human readableTametomo1-2/+9
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/+13
2009-03-26Changed includes in utils/ dictory to new guidelinesBjørn Lindeijer1-1/+1
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-0/+63
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.