Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of LibCSS.
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef css_charset_detect_h_
  9. #define css_charset_detect_h_
  10.  
  11. #include <inttypes.h>
  12.  
  13. #include <libcss/errors.h>
  14. #include <libcss/functypes.h>
  15. #include <libcss/types.h>
  16.  
  17. #include <parserutils/errors.h>
  18.  
  19. /* Extract a charset from a chunk of data */
  20. parserutils_error css__charset_extract(const uint8_t *data, size_t len,
  21.                 uint16_t *mibenum, uint32_t *source);
  22.  
  23. #endif
  24.  
  25.