summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update fmtlib to 7.0.0Peter Bell2020-07-061-2/+2
|
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Update fmt to 6.2.0 (#4718)peterbell102020-05-051-10/+33
| | | * Update fmt to 6.2.0
* GCC: Added pragma to ignore fallthrough warnings within Unicode Inc. code (#4392)E142019-09-131-0/+7
|
* Ignore whitespace only lines in brewing and furnace recipes (#4332)peterbell102019-06-111-0/+8
|
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-1/+9
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-1/+1
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Smelting Gives Experience (#4094)Alex Sweet2018-04-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Smelting Exp Smelting now gives experience * Furnace.txt update Exp rewards are entered in furnace.txt, Reward calculation is now done is the furnaceentity class * furnace.txt update Changed alignment tabs to spaces Included documentation of exp in recipe * Updated StringToFloat changed strtod to strtof * Explicit Float to Int * Reworked Smelting Rewards * No C casts -Adds new function to the api -Sets reward counter to 0 in furnace constructor * Style and exp lock removed -Fixed style mistakes accoring to PR notes -XP isn't locked to a single player anymore * No Smelter API -Removed SetLastSmelter and GetLastSmelter -Fixed comments -Fixed log reward amounts
* Add the fmt library (#4065)peterbell102018-01-031-123/+30
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Represent cItem::m_Lore as an AStringVector (#3882)peterbell102017-08-181-0/+36
| | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
* Remove stricmp macro in favour of NoCaseComparepeterbell102017-07-211-3/+1
|
* fix endless loop in StringReplace (#3658)Marvin Kopf2017-04-011-1/+7
| | | | * Fixed a recursive loop where the replacement would again be searched for the needle. * Skip if the needle is empty. Find(needle) always matches if needle is empty.
* StringUtils: Dropped an unneeded copy in lower-/upper-casing. (#3512)Mattes D2017-02-131-4/+6
|
* Refactored to put URL Encoding / Decoding in a single place. (#3491)Mattes D2016-12-251-57/+163
|
* Use CMake's Android generators to crosscompileTiger Wang2016-12-121-4/+0
|
* Fixed type-casting-related warnings.Mattes D2016-08-241-2/+2
|
* Fix unicode handling in StringUtils::TrimStringLogicParrot2016-02-161-2/+2
|
* Added HTTPS links wherever they are supported.Alexander Harkness2015-12-191-13/+9
|
* Improved types of utf 16 stringstycho2015-10-021-9/+9
|
* Unified the doxy-comment format.Mattes D2015-07-311-1/+1
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-23/+23
|
* StringUtils: Fixed StringSplitWithQuotes().Mattes D2015-05-101-0/+7
| | | | The function would crash when given a string that started with the delimiter.
* Performance improvements for #1807flx52015-03-121-3/+3
|
* Fixed coding conventions for Pull Request #1807flx52015-03-111-1/+6
|
* Fixed issue with quotes not appearing in pairsflx52015-03-111-4/+5
|
* Fixed some markup issuesflx52015-03-111-3/+4
|
* Fixed some markup issuesflx52015-03-111-3/+5
|
* Fixes #493 and #490flx52015-03-111-0/+39
|
* StringUtils: Fixed bad predicate in MergeStringVectors().Mattes D2015-01-271-1/+1
| | | | Instead of preventing duplicates it was allowing only duplicates.
* StringUtils: Added string vector manipulation.Mattes D2015-01-271-0/+44
|
* Fixed warnings in StringUtils.Mattes D2015-01-211-29/+28
|
* BasicStyle: Added missing braces to control statements.Mattes D2014-12-051-2/+8
|
* Fixed reported parentheses around comparisons.Mattes D2014-12-051-15/+18
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Bug fixTiger Wang2014-09-271-10/+10
|
* Initial BungeeCord support.madmaxoft2014-09-171-0/+28
| | | | Ref.: #1392
* Refactored case-conversion functions.madmaxoft2014-08-041-8/+17
| | | | StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
* Rewritten string case manipulation to use std::transform.madmaxoft2014-08-041-22/+4
|
* Attempting a compilation fix for gcc / clang.madmaxoft2014-08-031-0/+15
|
* Code style: Fixed braces on separate lines.madmaxoft2014-07-191-3/+5
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-4/+4
|
* Normalized comments.madmaxoft2014-07-171-4/+4
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed basic whitespace problems.madmaxoft2014-07-171-36/+35
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-091-10/+14
|
* Fixed CreateHexDump's format string.madmaxoft2014-04-041-2/+2
|
* Fixed CreateHexDump's signedness.madmaxoft2014-04-041-9/+9
|
* More Clang warning fixes in the protocols.madmaxoft2014-04-041-1/+1
|
* Fixed a few unneeded breaksTycho2014-03-141-1/+0
|
* Fixed xofts issuesTycho2014-03-101-1/+1
|
* Fixed Alignment issue in ByteBufferTycho2014-03-101-5/+2
|
* Fixed Byte-order reading.madmaxoft2014-01-261-2/+4
| | | | The functions would fail on bytes that were above 127.
* Yet another attempt at VarArgs.madmaxoft2014-01-161-10/+15
|
* Another VarArgs fix.madmaxoft2014-01-161-18/+26
| | | | 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-13/+15
| | | | This seems to be the only reasonable C++03-only solution.
* Fixed varargs modification.madmaxoft2014-01-151-1/+5
| | | | Ref.: #541.
* Fixed AppendVPrintf() handling for large strings.madmaxoft2014-01-081-6/+4
| | | | This caused a failure in server favicons.
* Fixed faviconsTiger Wang2014-01-071-3/+4
|
* More MSVC warning fixes.madmaxoft2014-01-071-1/+1
|
* Added Base64Encode().madmaxoft2014-01-071-0/+48
|
* Fixed unaligned memory access in FastNBT.madmaxoft2014-01-021-0/+30
| | | | This should fix #420.
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-49/+0
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+815