summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-02 17:16:25 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-02 17:16:25 +0000
commit981ece63b8d58f4607d5f1ea9365bceb3772a7e1 (patch)
tree7176c9eafef23f614142a5f5d98b358c5a105ffc /src/common/strlib.h
parentdbd99e3350351869f1a6db0c631e346241861087 (diff)
downloadhercules-981ece63b8d58f4607d5f1ea9365bceb3772a7e1.tar.gz
hercules-981ece63b8d58f4607d5f1ea9365bceb3772a7e1.tar.bz2
hercules-981ece63b8d58f4607d5f1ea9365bceb3772a7e1.tar.xz
hercules-981ece63b8d58f4607d5f1ea9365bceb3772a7e1.zip
* Added SV_KEEP_TERMINATOR option to not split the line terminator.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12461 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/strlib.h')
-rw-r--r--src/common/strlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h
index dae7f8b98..d4b514089 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -48,7 +48,7 @@ int strline(const char* str, size_t pos);
-/// Bitfield determining the behaviour of sv_parse.
+/// Bitfield determining the behaviour of sv_parse and sv_split.
typedef enum e_svopt
{
// default: no escapes and no line terminator
@@ -59,6 +59,8 @@ typedef enum e_svopt
SV_TERMINATE_LF = 2,
SV_TERMINATE_CRLF = 4,
SV_TERMINATE_CR = 8,
+ // If sv_split keeps the end of line terminator, instead of replacing with '\0'
+ SV_KEEP_TERMINATOR = 16
} e_svopt;
/// Other escape sequences supported by the C compiler.