summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-23 11:14:45 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-23 11:14:45 +0000
commitf09707bb9ea08e32d849ae2019d16cd7e14606a7 (patch)
tree0e081f4e99d4d99c9a2f96b5eade70924f7f65f9 /src/common/strlib.h
parent4e45ec34bb37eb515480cfc42dce7d7380a5e235 (diff)
downloadhercules-f09707bb9ea08e32d849ae2019d16cd7e14606a7.tar.gz
hercules-f09707bb9ea08e32d849ae2019d16cd7e14606a7.tar.bz2
hercules-f09707bb9ea08e32d849ae2019d16cd7e14606a7.tar.xz
hercules-f09707bb9ea08e32d849ae2019d16cd7e14606a7.zip
* Fixed script strings not being handled properly (only skipped the \).
* Added skip_escaped_c to strlib.c/h. * Fixed sv_unescape_c not handling hex/octal escapes properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12639 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/strlib.h')
-rw-r--r--src/common/strlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h
index 3c4075902..074c7eae3 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -91,6 +91,9 @@ size_t sv_escape_c(char* out_dest, const char* src, size_t len, const char* esca
/// out_dest should be len+1 in size and can be the same buffer as src.
size_t sv_unescape_c(char* out_dest, const char* src, size_t len);
+/// Skips a C escape sequence (starting with '\\').
+const char* skip_escaped_c(const char* p);
+
/// Opens and parses a file containing delim-separated columns, feeding them to the specified callback function row by row.
/// Tracks the progress of the operation (current line number, number of successfully processed rows).
/// Returns 'true' if it was able to process the specified file, or 'false' if it could not be read.