Clément de l'Hamaide
5861b52cff
Implement UTF-8 to Latin1 converter
2013-12-01 18:48:05 +01:00
James Turner
237752ff62
String case conversion, UTF-8 conversion.
2013-11-12 22:17:12 +00:00
James Turner
23140e3bf7
Avoid a data copy decoding base64 data.
...
Use an out parameter to avoid a buffer alloc/copy/free cycle
when returning base64-decoded data.
2013-10-09 10:03:30 +02:00
James Turner
68cd84c330
Make base64 decode significantly faster.
...
Use a reverse lookup table instead of a call to string.find for
each input byte, much speedier.
2013-10-09 10:03:27 +02:00
James Turner
a18792c397
Printf format sanitising.
...
Refactored version for next, use a new helper in
simgear::strutils.
2013-09-15 13:30:12 +01:00
Thomas Geymayer
d7870d672e
strutils: move unescape and simplify starts_with/ends_with
2013-06-10 21:36:13 +02:00
James Turner
478af5f01e
Base64 and hex helpers for strings
2013-06-09 19:19:03 +01:00
James Turner
b703102d9b
Part of fixing bug 1055.
...
Add machinery to convert hateful legacy Windows encodings to UTF-8.
2013-03-10 13:38:29 +00:00
ThorstenB
1ff3a61de6
Move uppercase function to strutils.
2012-10-10 21:31:57 +02:00
James Turner
7984f055e2
string list joining, and a test case for that and splitting.
2011-10-20 11:12:54 +01:00
James Turner
9cdf5ab9a1
Add another helper to strutils, to compare version strings.
2011-10-17 09:50:21 +01:00
James Turner
115531e944
Further HTTP improvements, correct proxy support, spec compliance, support for chunked encoding.
2011-08-04 18:03:56 +01:00
James Turner
f06f25532c
Tiny HTTP client layer on top of NetChat - and CTest support for some SimGear tests.
2011-07-19 12:55:55 +01:00
Torsten Dreyer
a079870bca
Add strutils::starts_with and strutils::ends_with
2011-02-20 15:29:06 +01:00
Torsten Dreyer
0994ffc195
Don't crash in strutils::trim() with empty strings
2010-10-05 22:39:41 +02:00
Torsten Dreyer
c0e20ad56b
add padding function lpad and rpad to strutils
2010-08-12 13:02:16 +02:00
Tim Moore
64756d14d0
Back out convertToLowerCase function
...
It brought in an OSG dependency; we'll just use boost::to_lower_copy instead.
2009-10-01 00:31:36 +02:00
jmt
dfe41ad984
Extend simgear::strutils with convertToLowerCase helper - currently a proxy for osgDB helper of the same name.
2009-09-28 23:50:08 +02:00
timoore
9861d74221
Fixes for compiling with gcc 4.3
...
Include standard header files and qualify with std:: where needed.
Add "const" to various char parameters and variables.
2008-04-13 21:11:44 +00:00
mfranz
dcb95d131b
- new FSF addresses
...
- coplied license headers from h(xx) files to respective c(xx) files
- removed trailing spaces
- fixe $Id$
- fixed typos
2006-03-08 18:16:08 +00:00
ehofman
0e52a08a47
MSVC fix.
2005-05-22 09:18:56 +00:00
curt
6a3d1895d9
Bernie Bright:
...
Here is a total rewrite of the strutils package. I've reimplemented the
trimleft(), trimright() and trim() functions as lstrip(), rstrip() and
strip() respectively. Additionally I've added a split() function that
behaves like its perl/python equivalent. Just the thing for splitting
comma separated option strings or space separated telnet commands and
arguments. I've also enclosed the whole thing in a namespace
simgear::strutils. Since I seem to be the only one who uses these
functions, SimGear and FlightGear compile without change.
PS It is no coincidence that the new function names bear an uncanny
resemblance to the python functions of the same name.
2002-05-10 13:32:44 +00:00
curt
e2b4c0787a
Attempt to resolve ambiguity between #include <config.h> for simgear vs.
...
flightgear, especially when this occurs in a simgear .hxx file. This is
now expressly forbidden, and will cause problems anyways because we now
changed the name to <simgear_config.h> which isn't installed, so you can't
include it in an installed header file.
2001-05-15 19:26:22 +00:00
curt
82459a2802
Converted to the LGPL licencing terms.
2000-07-08 19:16:10 +00:00
curt
5173d709e0
Initial revision
2000-02-09 19:27:02 +00:00