peterbell10
757231cc6e
Add the fmt library ( #4065 )
...
* 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.
2018-01-03 17:41:16 +00:00
peterbell10
b8dda388e0
Represent cItem::m_Lore as an AStringVector ( #3882 )
...
* Replace cItem::m_Lore with AStringVector
* Reword deprecation warning
* Fix lua bindings
2017-08-18 11:29:54 +01:00
peterbell10
55a5ffdf5c
Remove stricmp macro in favour of NoCaseCompare
2017-07-21 14:41:51 +01:00
Marvin Kopf
974c054bc9
fix endless loop in StringReplace ( #3658 )
...
* 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.
2017-04-01 12:57:51 +01:00
Mattes D
72e401313b
StringUtils: Dropped an unneeded copy in lower-/upper-casing. ( #3512 )
2017-02-13 19:56:34 +01:00
Mattes D
b3b723b453
Refactored to put URL Encoding / Decoding in a single place. ( #3491 )
2016-12-25 18:29:21 +01:00
Tiger Wang
8c6d0b51c7
Use CMake's Android generators to crosscompile
2016-12-12 14:32:32 +00:00
Mattes D
d2e8643607
Fixed type-casting-related warnings.
2016-08-24 22:26:53 +02:00
LogicParrot
f405c8820e
Fix unicode handling in StringUtils::TrimString
2016-02-16 16:58:27 +02:00
Alexander Harkness
8b851d5048
Added HTTPS links wherever they are supported.
2015-12-19 14:30:32 +00:00
tycho
e1d5e5e165
Improved types of utf 16 strings
2015-10-02 17:26:53 +02:00
Mattes D
6e4122e551
Unified the doxy-comment format.
2015-07-31 16:49:10 +02:00
Samuel Barney
804805d35a
Silenced and fixed many warning messages across multiple files.
2015-07-29 09:49:30 -06:00
Mattes D
b356419a07
StringUtils: Fixed StringSplitWithQuotes().
...
The function would crash when given a string that started with the delimiter.
2015-05-10 21:39:14 +02:00
flx5
936d56a711
Performance improvements for #1807
2015-03-12 20:16:12 +01:00
flx5
f6912bd01c
Fixed coding conventions for Pull Request #1807
2015-03-11 20:02:11 +01:00
flx5
d8ab99e944
Fixed issue with quotes not appearing in pairs
2015-03-11 19:52:49 +01:00
flx5
76012ee090
Fixed some markup issues
2015-03-11 04:38:15 +01:00
flx5
451ab6860f
Fixed some markup issues
2015-03-11 04:33:17 +01:00
flx5
d130696e95
Fixes #493 and #490
2015-03-11 04:14:17 +01:00
Mattes D
7cff25f0ff
StringUtils: Fixed bad predicate in MergeStringVectors().
...
Instead of preventing duplicates it was allowing only duplicates.
2015-01-27 14:53:29 +01:00
Mattes D
40e231bc29
StringUtils: Added string vector manipulation.
2015-01-27 14:53:25 +01:00
Mattes D
9429cdcb53
Fixed warnings in StringUtils.
2015-01-21 20:39:34 +01:00
Mattes D
e2a04f580a
BasicStyle: Added missing braces to control statements.
2014-12-05 16:59:11 +01:00
Mattes D
44644ae025
Fixed reported parentheses around comparisons.
2014-12-05 12:58:47 +01:00
Tiger Wang
a26541a7c3
En masse NULL -> nullptr replace
2014-10-22 20:12:49 -07:00
Tiger Wang
1f8ee70d55
Bug fix
2014-09-27 22:13:37 +01:00
madmaxoft
3406957f1b
Initial BungeeCord support.
...
Ref.: #1392
2014-09-17 09:38:06 +02:00
madmaxoft
1fa210c7f9
Refactored case-conversion functions.
...
StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
2014-08-04 11:30:20 +02:00
madmaxoft
122344bb7a
Rewritten string case manipulation to use std::transform.
2014-08-04 08:00:49 +02:00
madmaxoft
b19874e6f2
Attempting a compilation fix for gcc / clang.
2014-08-03 22:19:43 +02:00
madmaxoft
08748bafe2
Code style: Fixed braces on separate lines.
2014-07-19 15:23:40 +02:00
madmaxoft
00c524519e
Fixed style: spaces after commas.
2014-07-19 14:53:41 +02:00
madmaxoft
2423fbf2ef
Normalized comments.
...
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.
2014-07-17 22:15:34 +02:00
madmaxoft
993fd14ddf
Fixed basic whitespace problems.
...
Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
2014-07-17 16:33:09 +02:00
Mattes D
fb58ef55be
Fixed MSVC 64-bit build warnings.
2014-05-09 18:32:03 +02:00
madmaxoft
3590f97e00
Fixed CreateHexDump's format string.
2014-04-04 11:19:57 +02:00
madmaxoft
e1f75ab6d0
Fixed CreateHexDump's signedness.
2014-04-04 10:42:17 +02:00
madmaxoft
5dee19648d
More Clang warning fixes in the protocols.
2014-04-04 10:31:50 +02:00
Tycho
b829c9b14e
Fixed a few unneeded breaks
2014-03-14 07:12:00 -07:00
Tycho
98e15a34a4
Fixed xofts issues
2014-03-10 13:18:53 -07:00
Tycho
b78c729880
Fixed Alignment issue in ByteBuffer
2014-03-10 11:56:23 -07:00
madmaxoft
a3ac1be7b7
Fixed Byte-order reading.
...
The functions would fail on bytes that were above 127.
2014-01-26 17:56:11 +01:00
madmaxoft
6f739359e3
Yet another attempt at VarArgs.
2014-01-16 09:01:12 +01:00
madmaxoft
ba49a32c3a
Another VarArgs fix.
...
This time using va_copy() on platforms that have it and simple assignment on platforms that don't.
2014-01-16 08:34:10 +01:00
madmaxoft
dd6c5779ec
Using a 2nd argument instead of va_copy().
...
This seems to be the only reasonable C++03-only solution.
2014-01-15 18:28:51 +01:00
madmaxoft
3fd19df9fd
Fixed varargs modification.
...
Ref.: #541 .
2014-01-15 17:46:29 +01:00
madmaxoft
38d0bdf00a
Fixed AppendVPrintf() handling for large strings.
...
This caused a failure in server favicons.
2014-01-08 14:23:15 +01:00
Tiger Wang
1d96a615b5
Fixed favicons
2014-01-07 16:53:40 +00:00
madmaxoft
39a1bcdea0
More MSVC warning fixes.
2014-01-07 17:07:49 +01:00