Skip to content

Commit

Permalink
update r811
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Apr 7, 2015
1 parent c97540d commit dcf4eb4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/Doxyfile
Expand Up @@ -32,7 +32,7 @@ PROJECT_NAME = iutest_c
# This could be handy for archiving the generated documentation or
# if some version control system is used.

PROJECT_NUMBER = 1.5.0.9
PROJECT_NUMBER = 1.5.0.10

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer
Expand Down
10 changes: 5 additions & 5 deletions include/impl/iutest_xml_file_c.inl
Expand Up @@ -6,7 +6,7 @@
*
* @author t.sirayanagi
* @par copyright
* Copyright (C) 2012-2014, Takazumi Shirayanagi\n
* Copyright (C) 2012-2015, Takazumi Shirayanagi\n
* This software is released under the new BSD License,
* see LICENSE
*/
Expand Down Expand Up @@ -118,9 +118,9 @@ IUTEST_C_INL_INLINE IUTEST_ATTRIBUTE_UNUSED_ iuBOOL iuXmlFile_EscapeXmlAttribute
{
return iuXmlFile_EscapeCharactor(dst, src, TRUE);
}
IUTEST_C_INL_INLINE IUTEST_ATTRIBUTE_UNUSED_ iuBOOL iuXmlFile_EscapeXmlText(char* dst, const char* src)
{
return iuXmlFile_EscapeCharactor(dst, src, FALSE);
}
//IUTEST_C_INL_INLINE IUTEST_ATTRIBUTE_UNUSED_ iuBOOL iuXmlFile_EscapeXmlText(char* dst, const char* src)
//{
// return iuXmlFile_EscapeCharactor(dst, src, FALSE);
//}

#endif
4 changes: 2 additions & 2 deletions include/internal/iutest_xml_file_c.h
Expand Up @@ -6,7 +6,7 @@
*
* @author t.sirayanagi
* @par copyright
* Copyright (C) 2012-2014, Takazumi Shirayanagi\n
* Copyright (C) 2012-2015, Takazumi Shirayanagi\n
* This software is released under the new BSD License,
* see LICENSE
*/
Expand All @@ -29,7 +29,7 @@ IUTEST_ATTRIBUTE_UNUSED_ void iuXmlFile_OutputCDataSection(FILE* fp, const char*
#endif

IUTEST_ATTRIBUTE_UNUSED_ iuBOOL iuXmlFile_EscapeXmlAttribute(char* dst, const char* src);
IUTEST_ATTRIBUTE_UNUSED_ iuBOOL iuXmlFile_EscapeXmlText(char* dst, const char* src);
//IUTEST_ATTRIBUTE_UNUSED_ iuBOOL iuXmlFile_EscapeXmlText(char* dst, const char* src);

#endif

Expand Down
4 changes: 2 additions & 2 deletions include/iutest_ver_c.h
Expand Up @@ -16,11 +16,11 @@
#define INCG_IRIS_IUTEST_VER_C_H_D65CB7A7_D2AD_40FE_8F5F_8FBF376A0010_

/* define ============================================================*/
#define IUTEST_C_VER 0x01050009 /*!< iutest version 1.5.0.9 */
#define IUTEST_C_VER 0x01050010 /*!< iutest version 1.5.0.10 */
#define IUTEST_C_MAJORVER 0x01 /*!< Major Version */
#define IUTEST_C_MINORVER 0x05 /*!< Minor Version */
#define IUTEST_C_BUILD 0x00 /*!< Build */
#define IUTEST_C_REVISION 0x09 /*!< Revision */
#define IUTEST_C_REVISION 0x10 /*!< Revision */

/**
* @mainpage
Expand Down
7 changes: 7 additions & 0 deletions test/iutest_unit_tests.c
Expand Up @@ -140,3 +140,10 @@ IUTEST(FormatUnit, PrintTo)
}
}

IUTEST(XmlUnit, Escape)
{
char str[64];
iuXmlFile_EscapeXmlAttribute(str, "a<> b& \'\"c\r\n");
IUTEST_ASSERT_STREQ("a&lt;&gt;&#x09;b&amp; &apos;&quot;c&#x0D;&#x0A;", str);
}

0 comments on commit dcf4eb4

Please sign in to comment.