projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added silc_subst, regex matching and substitution with the
[silc.git]
/
lib
/
silcutil
/
tests
/
test_silcbuffmt.c
diff --git
a/lib/silcutil/tests/test_silcbuffmt.c
b/lib/silcutil/tests/test_silcbuffmt.c
index 052be536edc8460f2a1535ad900d8d05682409bb..44bac0ac44de196c4929678c46d849352650d9a9 100644
(file)
--- a/
lib/silcutil/tests/test_silcbuffmt.c
+++ b/
lib/silcutil/tests/test_silcbuffmt.c
@@
-46,7
+46,7
@@
int main(int argc, char **argv)
if (silc_buffer_format(&buf,
SILC_STR_REGEX("foo", SILC_STR_REGEX_ALL |
SILC_STR_REGEX_INCLUSIVE),
if (silc_buffer_format(&buf,
SILC_STR_REGEX("foo", SILC_STR_REGEX_ALL |
SILC_STR_REGEX_INCLUSIVE),
- SILC_STR_
STRING_APPEND("barbar"
),
+ SILC_STR_
REPLACE("barbar", 6
),
SILC_STR_END,
SILC_STR_END) < 0)
goto err;
SILC_STR_END,
SILC_STR_END) < 0)
goto err;
@@
-63,7
+63,7
@@
int main(int argc, char **argv)
if (silc_buffer_format(&buf,
SILC_STR_REGEX("foo", SILC_STR_REGEX_ALL |
SILC_STR_REGEX_INCLUSIVE),
if (silc_buffer_format(&buf,
SILC_STR_REGEX("foo", SILC_STR_REGEX_ALL |
SILC_STR_REGEX_INCLUSIVE),
- SILC_STR_
DELETE(-1
),
+ SILC_STR_
REPLACE("", 0
),
SILC_STR_END,
SILC_STR_END) < 0)
goto err;
SILC_STR_END,
SILC_STR_END) < 0)
goto err;