summaryrefslogtreecommitdiffstats
path: root/xsd2c/tr.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsd2c/tr.c')
-rw-r--r--xsd2c/tr.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xsd2c/tr.c b/xsd2c/tr.c
index 5756e91..7166d72 100644
--- a/xsd2c/tr.c
+++ b/xsd2c/tr.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: tr.c,v 1.1 2004/06/02 11:17:03 snowdrop Exp $
+ * $Id: tr.c,v 1.2 2004/06/03 20:23:03 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -180,6 +180,15 @@ void trRegisterTypeNS(const char* ns, const char* xsdType, const char* cType)
tr_tail = reg;
}
+char* trXSDParseNs(const char* xsdType)
+{
+ int c = 0;
+ while (xsdType[c] != '\0' ) {
+ if (xsdType[c] == ':') return &xsdType[++c];
+ c++;
+ }
+ return xsdType;
+}
void trRegisterListType(const char* xsdType, const char* cType)
{