summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix FreeBSD/clang errors caused by -Werrorlinnemannr2015-05-301-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With FreeBSD/clang, -Werror combined with the configured warning flags yields some fatal errors, specifically related to signed conversion, 64 to 32 bit conversion, and tautological compares. CONTRIBUTORS Add myself to the contributor list src/Generating/FinishGen.cpp In cFinishGenPassiveMobs::GetRandomMob(), change the type of RandMob from size_t to the difference_type of the ListOfSpawnables iterator MobIter. Using size_t triggers a 64 bit to 32 bit conversion if the difference_type of the iterator class is 64 bit Also explicitly cast the noise expression to unsigned long so we don't get a signed conversion warning from the modulo against ListOfSpawnables.size() src/OSSupport/StackTrace.cpp FreeBSD 10 and above includes a non glibc implementation of benchmark() for which size_t, not int, is the return type. To account for this and prevent a signed conversion warning, abstract the type for numItems with a macro btsize src/StringUtils.h In StringToInteger(), correct a tautological compare warning for unsigned types with the template. If T is unsigned, comparing std::numeric_limits<T>::min() to the unsigned result is always false. That control can enter this branch in an evaluated template with an unsigned type T may also permit a signed number to be parsed and erroneously stripped of its signedness at runtime. To guard against this and avoid the warning in the case that the number parsed from the string is non-positive, return false and don't try to parse if T is unsigned and control enters the non-positive branch
* Fixed a lot of warningstycho2015-05-191-2/+2
|
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* Fixes #493 and #490flx52015-03-111-0/+5
|
* StringUtils: Added string vector manipulation.Mattes D2015-01-271-1/+10
|
* Fixed warnings in StringUtils.Mattes D2015-01-211-20/+31
|
* Bug fixTiger Wang2014-09-271-2/+2
|
* Initial BungeeCord support.madmaxoft2014-09-171-0/+5
| | | | Ref.: #1392
* Fixed spaces.Mattes D2014-08-291-1/+1
|
* Hotfixed recipe.txt loading.Hownaer2014-08-291-2/+2
|
* More template keyword fixes.Mattes D2014-08-281-2/+2
|
* Merge remote-tracking branch 'origin/master' into CraftingFixesMattes D2014-08-281-1/+0
|\
| * First Implementatation of new Loggin frameworkTycho2014-08-101-1/+0
| |
* | Fixed spaces after "template" keyword.Mattes D2014-08-281-1/+1
| |
* | Fixed commentsTycho2014-08-131-5/+5
| |
* | Added missing headerTycho2014-08-131-0/+1
| |
* | Fixed Integer pasing warnings in CraftingRecipies.cppTycho2014-08-131-0/+62
|/
* Refactored case-conversion functions.madmaxoft2014-08-041-2/+5
| | | | StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
* Attempting a compilation fix for gcc / clang.madmaxoft2014-08-031-0/+3
|
* Fixed basic whitespace problems.madmaxoft2014-07-171-9/+1
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Merge branch 'master' into chunksparsing/structsTycho2014-05-101-2/+2
|\ | | | | | | | | Conflicts: src/Chunk.h
| * Fixed MSVC 64-bit build warnings.Mattes D2014-05-091-2/+2
| |
* | cCHunkBuffer that compiles with TestGlobals.hTycho2014-05-031-0/+3
|/
* Fixed CreateHexDump's signedness.madmaxoft2014-04-041-1/+1
|
* More Clang warning fixes in the protocols.madmaxoft2014-04-041-1/+1
|
* Exported the Base64 encoding and decoding functions to Lua API.madmaxoft2014-04-011-2/+2
|
* Fixed xofts issuesTycho2014-03-141-4/+4
|
* Fixed more Format issuesTycho2014-03-111-1/+1
|
* Added macros to follow format string checking through wrappersTycho2014-03-111-3/+3
|
* Fixed Alignment issue in ByteBufferTycho2014-03-101-1/+1
|
* Another VarArgs fix.madmaxoft2014-01-161-6/+2
| | | | This time using va_copy() on platforms that have it and simple assignment on platforms that don't.
* Using a 2nd argument instead of va_copy().madmaxoft2014-01-151-2/+6
| | | | This seems to be the only reasonable C++03-only solution.
* Added Base64Encode().madmaxoft2014-01-071-0/+3
|
* Fixed unaligned memory access in FastNBT.madmaxoft2014-01-021-0/+9
| | | | This should fix #420.
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-3/+0
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+96