summaryrefslogtreecommitdiff
path: root/src/util/string.cpp
AgeCommit message (Collapse)Author
2018-07-06Fix memory leak in guiConfirmRegistrationHybridDog
2018-04-23Formspecs: Allow setting alpha value for the box[] elementThomas--S
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-08-25Translations: prevent remote crash with invalid translationsEkdohibs
2017-08-24Add clientside translations.Ekdohibs
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-05-06Clean up numeric.h and split FacePositionCache from itShadowNinja
I also optiized FacePositionCache a bit: I removed a map lookup and vector copy from both branches of getFacePosition.
2017-01-15Add color names from web page referenced in luaapi docsapier
2016-06-11Random misc. warning fixes and cleanupskwolekr
- Fix unused c_sand member warning in Valleys Mapgen - Fix some code style - Make some std::string params const ref
2016-04-24Escape more strings: formspecs, item descriptions, infotexts...Ekdohibs
Also, change the escape character to the more standard \x1b Thus, it can be used in the future for translation or colored text, for example.
2016-03-15Remove chat escape sequences from chat messages, for future colored chat.Ekdohibs
2015-08-19Fix indianred and indigo of color-stringRui
2015-08-19Android: bypass broken wide_to_utf8 with wide_to_narrow (again)est31
This bypass had to be re-enabled as some users reported issues, even after the iconv build fix. While utf8_to_wide works well, wide_to_utf8 is quite broken on android, for some reason, and some devices (unrelated from build configuration).
2015-07-29Android: fix horrible libiconv buildest31
Before, our libiconv build was a joke. We first called configure for our own build host system, then called make, before we executed a Android.mk script we provided as patch. The first "native make" always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one, resulting in an always-rebuild of iconv. This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls ./configure with the according target platform, and uses a built toolchain. As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames" https://code.google.com/p/android/issues/detail?id=55868 as the 2013 patch https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to libtool. Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
2015-07-08Use UTF-8 instead of narrowest31
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places. Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
2015-06-29Fix *BSD build with GNU iconvkwolekr
2015-06-23Fix string conversion error messageest31
2015-06-17Fail iconv call gracefullyest31
No freezing when inbuf_size doesn't decrease over time.
2015-06-14Android: bypass broken wide_to_utf8 with wide_to_narrowest31
While utf8_to_wide works well, wide_to_utf8 is quite broken on android, for some reason.
2015-06-13Add utf-8 conversion utilities and re-add intlGUIEditBoxest31
2015-05-11Make early protocol auth mechanism generic, and add SRPest31
Adds everything needed for SRP (and everything works too), but still deactivated, as protocol v25 init packets aren't final yet. Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25 inside networkprotocol.h.
2015-04-17Refactor around translatePasswordest31
Change types for passed password from wstring to string, which removes converting back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary, closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for translatePassword passed as const reference.
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07Fix Android text bug (no text displaying)Craig Robbins
2015-03-02Fix narrow_to_wide_c (ANDROID)Craig Robbins
* Ensure converted string is NUL terminated * Restore logic to that used prior to 9e2a9b5
2015-02-27Fix minor memory leak (Android)Craig Robbins
2015-02-21Move hex.h to util/Loic Blot
2015-02-21Move sha1.hpp and base64.hpp to util/Loic Blot
2015-02-12Fix gettext on MSVCBlockMen
2015-02-11Fix Android build of narrow_to_wideShadowNinja
2015-02-05Reduce gettext wide/narrow and string/char* conversionsShadowNinja
2015-01-03Deduplicate code and use stdlib in string functionsShadowNinja
2014-10-29Added names colours and refactored parseColorString()Craig Robbins
2014-10-05Add [colorize modifierBlockMen
2014-10-03Fix misc. style issueskwolekr
2014-09-21Use const references for Settings methodsShadowNinja
Also check for (this == &other) before locking mutexes.
2014-06-29Add support for Android 2.3+sapier
There have been plenty of ppl involved in creating this version. I don't wanna mention names as I'm sure I'd forget someone so I just tell where help has been done: - The partial android versions done by various ppl - Testing on different android devices - reviewing code (especially the in core changes) - testing controls - reviewing texts A big thank you to everyone helping this to be completed!
2014-02-09Add capability to read table flag fields from Lua APIkwolekr
2014-02-08Make flag strings clear specified flag with 'no' prefixkwolekr
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
2013-12-13Implement urlencode and urldecodeKahrl
2013-11-11Fix win32/msvc i18n (quite UGLY version, blame Microsoft)sapier
2013-11-04Accept hexadecimal and string values for seedskwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-02-06Add flag string settings, flat map optionkwolekr
2013-01-23Slightly improved version of mystrtok_rkwolekr
2013-01-23Fix compile under MingWkwolekr
2012-12-16Added ability to fetch media from remote server (using cURL library)Ilya Zhuravlev
2012-06-17Hopefully fix includes on mingwPerttu Ahola