projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce ccl_parser_qual_search
[yaz-moved-to-github.git]
/
include
/
yaz
/
wrbuf.h
diff --git
a/include/yaz/wrbuf.h
b/include/yaz/wrbuf.h
index
9e6176e
..
d716af0
100644
(file)
--- a/
include/yaz/wrbuf.h
+++ b/
include/yaz/wrbuf.h
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data.
+ * Copyright (C) 1995-2013 Index Data.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@
-53,7
+53,7
@@
YAZ_EXPORT WRBUF wrbuf_alloc(void);
/** \brief destroy WRBUF and its buffer
\param b WRBUF
/** \brief destroy WRBUF and its buffer
\param b WRBUF
-
+
For YAZ 4.0.2 WRBUF b may be NULL.
*/
YAZ_EXPORT void wrbuf_destroy(WRBUF b);
For YAZ 4.0.2 WRBUF b may be NULL.
*/
YAZ_EXPORT void wrbuf_destroy(WRBUF b);
@@
-63,13
+63,21
@@
YAZ_EXPORT void wrbuf_destroy(WRBUF b);
*/
YAZ_EXPORT void wrbuf_rewind(WRBUF b);
*/
YAZ_EXPORT void wrbuf_rewind(WRBUF b);
-/** \brief append constant size buffer to WRBU
+/** \brief append constant size buffer to WRBUF
\param b WRBUF
\param buf buffer
\param size size of buffer
*/
YAZ_EXPORT void wrbuf_write(WRBUF b, const char *buf, size_t size);
\param b WRBUF
\param buf buffer
\param size size of buffer
*/
YAZ_EXPORT void wrbuf_write(WRBUF b, const char *buf, size_t size);
+/** \brief inserts buffer into WRBUF at some position
+ \param b WRBUF
+ \param pos position (0=beginning)
+ \param buf buffer
+ \param size size of buffer
+ */
+YAZ_EXPORT void wrbuf_insert(WRBUF b, size_t pos, const char *buf, size_t size);
+
/** \brief appends C-string to WRBUF
\param b WRBUF
\param buf C-string (0-terminated)
/** \brief appends C-string to WRBUF
\param b WRBUF
\param buf C-string (0-terminated)
@@
-80,7
+88,7
@@
YAZ_EXPORT void wrbuf_puts(WRBUF b, const char *buf);
\param buf C-string
\param client_data assumed WRBUF
*/
\param buf C-string
\param client_data assumed WRBUF
*/
-void wrbuf_vp_puts(const char *buf, void *client_data);
+YAZ_EXPORT void wrbuf_vp_puts(const char *buf, void *client_data);
/** \brief writes buffer of certain size to WRBUF and XML encode (as CDATA)
\param b WRBUF
/** \brief writes buffer of certain size to WRBUF and XML encode (as CDATA)
\param b WRBUF
@@
-101,7
+109,7
@@
YAZ_EXPORT void wrbuf_xmlputs(WRBUF b, const char *cp);
\param from character "from"
\param to charcter "to"
*/
\param from character "from"
\param to charcter "to"
*/
-YAZ_EXPORT void wrbuf_puts_replace_char(WRBUF b, const char *buf,
+YAZ_EXPORT void wrbuf_puts_replace_char(WRBUF b, const char *buf,
const char from, const char to);
/** \brief writes C-string to WRBUF and escape non-ASCII characters
const char from, const char to);
/** \brief writes C-string to WRBUF and escape non-ASCII characters
@@
-186,7
+194,7
@@
YAZ_EXPORT void wrbuf_iconv_putchar(WRBUF b, yaz_iconv_t cd, int ch);
/** \brief iconv reset(flush) to WRBUF
\param b
\param cd iconv handle
/** \brief iconv reset(flush) to WRBUF
\param b
\param cd iconv handle
-
+
This function calls iconv(cd, 0, 0, ..) to make it
flush any remaining content.
*/
This function calls iconv(cd, 0, 0, ..) to make it
flush any remaining content.
*/
@@
-203,7
+211,7
@@
YAZ_EXPORT void wrbuf_chop_right(WRBUF b);
*/
YAZ_EXPORT void wrbuf_cut_right(WRBUF b, size_t no_to_remove);
*/
YAZ_EXPORT void wrbuf_cut_right(WRBUF b, size_t no_to_remove);
-/** \brief grow WRBUF larger
+/** \brief grow WRBUF larger
\param b WRBUF
\param minsize make WRBUF at least this size
\param b WRBUF
\param minsize make WRBUF at least this size