1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

unicode: Deprecate most xmlUCSIs* functions

These don't seem to be used by downstream code.
This commit is contained in:
Nick Wellnhofer
2024-04-30 17:26:28 +02:00
parent e637953527
commit ae23a4ce56
3 changed files with 171 additions and 4 deletions

View File

@@ -373,7 +373,7 @@ static xmlIntFunc
for block in bkeys:
name = block.replace('-', '')
header.write("XMLPUBFUN int xmlUCSIs%s\t(int code);\n" % name)
header.write("XML_DEPRECATED\nXMLPUBFUN int xmlUCSIs%s\t(int code);\n" % name)
output.write("/**\n * xmlUCSIs%s:\n * @code: UCS code point\n" % (name))
output.write(" *\n * Check whether the character is part of %s UCS Block\n"%
(block))
@@ -413,7 +413,7 @@ xmlUCSIsBlock(int code, const char *block) {
for name in ckeys:
ranges = Categories[name]
header.write("XMLPUBFUN int xmlUCSIsCat%s\t(int code);\n" % name)
header.write("XML_DEPRECATED\nXMLPUBFUN int xmlUCSIsCat%s\t(int code);\n" % name)
output.write("/**\n * xmlUCSIsCat%s:\n * @code: UCS code point\n" % (name))
output.write(" *\n * Check whether the character is part of %s UCS Category\n"%
(name))