Hash :
58d5e836
Author :
Thomas de Grivel
Date :
2025-09-09T05:13:06
pdf_buf_parse
/* kc3
* Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
#ifndef KC3_PDF_BUF_PARSE_H
#define KC3_PDF_BUF_PARSE_H
#include "../libkc3/types.h"
/* Parser functions. */
sw pdf_buf_parse (s_buf *buf, s_tag *dest);
sw pdf_buf_parse_array (s_buf *buf, p_list *dest);
sw pdf_buf_parse_bool (s_buf *buf, bool *dest);
sw pdf_buf_parse_comment (s_buf *buf);
sw pdf_buf_parse_comments (s_buf *buf);
sw pdf_buf_parse_dictionnary (s_buf *buf, s_map *dest);
sw pdf_buf_parse_name (s_buf *buf, p_sym *dest);
sw pdf_buf_parse_number (s_buf *buf, s_tag *dest);
sw pdf_buf_parse_object_end (s_buf *buf, bool *end);
sw pdf_buf_parse_string (s_buf *buf, s_tag *dest);
sw pdf_buf_parse_string_hex (s_buf *buf, s_str *dest);
sw pdf_buf_parse_string_paren (s_buf *buf, s_str *dest);
bool pdf_character_is_delimiter (character c);
#endif /* KC3_PDF_BUF_PARSE_H */