aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
AgeCommit message (Collapse)Author
2019-07-30COMMON: Update getHumanReadableBytes() in util.hAlexander Tkachev
Function now casts bytes (as <1024) to unsigned long int to correspond "%lu" format string. For consistency, KB are now printed as floating number. Finally, it looks like double is pretty precise to be used in comparisons, so I made the function a little bit shorter.
2019-07-30COMMON: Add getHumanReadableBytes() in util.hAlexander Tkachev
This function was used in cloud-related DownloadDialog before, and now it is also used in Options > Cloud tab.
2019-07-24COMMON: Add wrappers for iscntrl() and isgraph()Cameron Cawley
2019-05-24GLK: TADS2: Added code for output, run, various miscellaneousPaul Gilbert
2016-07-10TITANIC: Implement TTparser normalizePaul Gilbert
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2012-12-13COMMON: Add wrapper for isprint.Johannes Schickel
This is done in the spirit of 658080deeda79d20ea40643569fbcb072573e7cf.
2012-02-26COMMON: Move Language and Platform functionality into separate filesMax Horn
2012-02-26COMMON: Move RenderMode and GUIOptions functionality into separate filesMax Horn
2012-02-24COMMON: distinguish between 256 colors and 16 colors PC-98 rendering modesathrxx
KYRA 1 PC-98 supports both modes in the same target. The desired mode can now be selected in the rendering options. We did have good support for the 16 colors mode of KYRA 1 already. This mode could not really be selected though (except by manually modifying the config file or the code).
2012-02-21COMMON: add gui options for rendering modesathrxx
The purpose is the same as for the sound gui options: users shouldn't be offered modes that the engine doesn't support.
2012-02-20COMMON: Filter non-ASCII values in ctype.h-style isFOO functionsMax Horn
2012-02-20COMMON: Move isFoo functions to namespace Common, add doxygen commentsMax Horn
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
On some systems, passing signed chars to macros like isspace() etc. lead to a runtime error. Hence, mark these macros as forbidden by default, and introduce otherwise equivalent alternatives for them.
2011-11-18COMMON: Added Croatian language (for a localized version of BS2.5)Filippos Karapetis
2011-10-24GUI: Add GUIO EGA Dithering optionStrangerke
This will be used to disable the EGA dithering option
2011-10-23LAUNCHER: Add GUIO_NOASPECT to SCUMM engineStrangerke
2011-10-23ALL: Reduce assignment of "" to Common::String.Johannes Schickel
When clearing an existant object clear() should be used. When constructing objects (or using default values for parameters) the constructor of String without any argument should be used. This changes only a few instances I noticed while looking over some recent commit logs.
2011-10-23AD: Swtich GUI options to a char array.Eugene Sandulenko
This eliminates nasty limitation of caping number of flags to 31. Current code has limitation of 255 flags, though. Only SCUMM engine is converted, rest do not even compile. Detection of fan talkie MI is broken as it has to be implemented differently.
2011-08-20I18N: Added comments to some of obscure translatable stringsEugene Sandulenko
2011-08-20COMMON: Restore locale <-> Common::Language conversion utilsEugene Sandulenko
This reverts commit 284b49aabc54590e1444f06561a815c2a3c5de7e.
2011-08-07COMMON: Remove superfluous Common:: qualifiers.Christoph Mallon
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-05-31Merge remote branch 'upstream/master' into t7g-iosMatthew Hoops
Conflicts: engines/groovie/script.cpp
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-11Merge remote branch 'upstream/master' into t7g-iosMatthew Hoops
Conflicts: audio/decoders/qdm2.h common/util.cpp engines/groovie/music.cpp engines/groovie/resource.h video/qt_decoder.cpp video/qt_decoder.h
2011-05-03COMMON: Fix spelling of 'Philips'Matthew Hoops
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-07COMMON: Add iOS platform typeMatthew Hoops
2010-11-28COMMON: Comment out locale <-> Common::Language conversion utils for now.Johannes Schickel
svn-id: r54517
2010-11-25OSYSTEM: Add API to query the system locale.Johannes Schickel
I also adapted the SDL backend to implement the API. svn-id: r54479
2010-11-01COMMON: Switch hexdump() to debugN instead of printfMax Horn
Rational: hexdump() is used for debug output. An even better alternative might be to change it to return a string, instead of printing anything. This way, it could be used inside e.g. GUI debug consoles. This is left as an exercise to the interested developer :). svn-id: r54010
2010-08-30I18N: Add "lowres" context for several GUI strings when in 1x mode.Thierry Crozat
This enables translators to use a different translation for these strings in 1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes. svn-id: r52461
2010-08-11Use tabs instead of spaces for indentation.Eugene Sandulenko
svn-id: r51997
2010-08-11GUI: add music devices for c64, amiga and apple II gsFlorian Kagerer
These devices are not able to create appropriate drivers. The only purpose for now is having proper gui options and flags and music types for the device detector. The corresponding GUIO flags for the new devices have been added, too. svn-id: r51995
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-07-05Fix update of GUI options, which only differ in the language setting.Johannes Schickel
svn-id: r50706
2010-07-05Formatting fixes.Johannes Schickel
svn-id: r50705
2010-06-26GUI: Add and improve some messages to translateJordi Vilalta Prat
svn-id: r50324
2010-06-25AUDIO: some fixes in the audio device code (no sound option, new GUIO flags)Florian Kagerer
svn-id: r50281
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-06-15GUI: Implemented Languages as GUI options.Eugene Sandulenko
SCUMM and AdvancedDetector support this feature. svn-id: r49786
2010-06-15GUI: Implement MIDI drivers as GUI options.Eugene Sandulenko
Proper version of patch #2988641: "GSoC: Select drivers in GUI based on output types". So far only SCUMM engine supports this feature. svn-id: r49783
2010-04-12Apply patch #2982163 - CONFIG: Use HE keyword instead of HB for the Hebrew ↵Ori Avtalion
language svn-id: r48645
2010-04-06COMMON: Add Common::parseBoolMax Horn
svn-id: r48566
2010-03-20Remove unused stdarg.h include.Johannes Schickel
svn-id: r48312
2010-03-20Move StringTokenizer to its own files (tokenizer.h/tokenizer.cpp).Johannes Schickel
svn-id: r48310
2010-03-18COMMON: Move tag2str from util.h to str.hMax Horn
svn-id: r48281
2010-03-18COMMON: Move port specific '#define fputs' from util.cpp to textconsole.cppMax Horn
svn-id: r48280
2010-03-18COMMON: Move Common::RandomSource to common/random.*Max Horn
svn-id: r48279