log SvgLoader: Enhance log message
[platform/core/graphics/tizenvg.git] / src / loaders / svg / tvgXmlParser.h
index 9c19547..f775819 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. All rights reserved.
 
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
 
 #include "tvgSvgLoaderCommon.h"
 
+#define NUMBER_OF_XML_ENTITIES 8
+const char* const xmlEntity[] = {""", " ", "'", "&", "<", ">", "#", "'"};
+const int xmlEntityLength[] = {6, 6, 6, 5, 4, 4, 6, 6};
+
 enum class SimpleXMLType
 {
     Open = 0,     //!< \<tag attribute="value"\>
@@ -48,4 +52,10 @@ bool simpleXmlParse(const char* buf, unsigned buflen, bool strip, simpleXMLCb fu
 bool simpleXmlParseW3CAttribute(const char* buf, simpleXMLAttributeCb func, const void* data);
 const char *simpleXmlFindAttributesTag(const char* buf, unsigned buflen);
 
+#ifdef THORVG_LOG_ENABLED
+string simpleXmlNodeTypeToString(SvgNodeType type);
+
+bool isIgnoreUnsupportedLogElements(const char* tagName);
+#endif
+
 #endif //_TVG_SIMPLE_XML_PARSER_H_