From 55cefa05d48152404dbec4eff03339342265f931 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Thu, 3 Jun 2004 20:23:02 +0000 Subject: fixed typeregistry bug example : #include "s0:Dictionary.h" instead of #include "Dictionary.h" --- xsd2c/tr.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'xsd2c/tr.c') 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) { -- cgit v1.1-32-gdbae