PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/src/runtime/ext/ext_xml.h

https://github.com/kevlund/hiphop-php
C Header | 56 lines | 30 code | 7 blank | 19 comment | 0 complexity | 70df848b86921430885f1afc48392b99 MD5 | raw file
  1. /*
  2. +----------------------------------------------------------------------+
  3. | HipHop for PHP |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
  6. | Copyright (c) 1997-2010 The PHP Group |
  7. +----------------------------------------------------------------------+
  8. | This source file is subject to version 3.01 of the PHP license, |
  9. | that is bundled with this package in the file LICENSE, and is |
  10. | available through the world-wide-web at the following url: |
  11. | http://www.php.net/license/3_01.txt |
  12. | If you did not receive a copy of the PHP license and are unable to |
  13. | obtain it through the world-wide-web, please send a note to |
  14. | license@php.net so we can mail you a copy immediately. |
  15. +----------------------------------------------------------------------+
  16. */
  17. #ifndef __EXT_XML_H__
  18. #define __EXT_XML_H__
  19. // >>>>>> Generated by idl.php. Do NOT modify. <<<<<<
  20. #include <runtime/base/base_includes.h>
  21. namespace HPHP {
  22. ///////////////////////////////////////////////////////////////////////////////
  23. Object f_xml_parser_create(CStrRef encoding = null_string);
  24. bool f_xml_parser_free(CObjRef parser);
  25. int f_xml_parse(CObjRef parser, CStrRef data, bool is_final = true);
  26. int f_xml_parse_into_struct(CObjRef parser, CStrRef data, VRefParam values, VRefParam index = null);
  27. Object f_xml_parser_create_ns(CStrRef encoding = null_string, CStrRef separator = null_string);
  28. Variant f_xml_parser_get_option(CObjRef parser, int option);
  29. bool f_xml_parser_set_option(CObjRef parser, int option, CVarRef value);
  30. bool f_xml_set_character_data_handler(CObjRef parser, CVarRef handler);
  31. bool f_xml_set_default_handler(CObjRef parser, CVarRef handler);
  32. bool f_xml_set_element_handler(CObjRef parser, CVarRef start_element_handler, CVarRef end_element_handler);
  33. bool f_xml_set_processing_instruction_handler(CObjRef parser, CVarRef handler);
  34. bool f_xml_set_start_namespace_decl_handler(CObjRef parser, CVarRef handler);
  35. bool f_xml_set_end_namespace_decl_handler(CObjRef parser, CVarRef handler);
  36. bool f_xml_set_unparsed_entity_decl_handler(CObjRef parser, CVarRef handler);
  37. bool f_xml_set_external_entity_ref_handler(CObjRef parser, CVarRef handler);
  38. bool f_xml_set_notation_decl_handler(CObjRef parser, CVarRef handler);
  39. bool f_xml_set_object(CObjRef parser, VRefParam object);
  40. int f_xml_get_current_byte_index(CObjRef parser);
  41. int f_xml_get_current_column_number(CObjRef parser);
  42. int f_xml_get_current_line_number(CObjRef parser);
  43. int f_xml_get_error_code(CObjRef parser);
  44. String f_xml_error_string(int code);
  45. String f_utf8_decode(CStrRef data);
  46. String f_utf8_encode(CStrRef data);
  47. ///////////////////////////////////////////////////////////////////////////////
  48. }
  49. #endif // __EXT_XML_H__