| <HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
|
| <BODY>
|
| <h2 align="center">Xalan-C++ API Documentation</h2>
|
| <h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
|
| </BODY> |
| <!-- Generated by Doxygen 1.2.8.1 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> |
| <hr><h1>URISupport.hpp</h1><a href="URISupport_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font> |
| 00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font> |
| 00003 <font class="comment"> *</font> |
| 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font> |
| 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font> |
| 00006 <font class="comment"> * You may obtain a copy of the License at</font> |
| 00007 <font class="comment"> *</font> |
| 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font> |
| 00009 <font class="comment"> *</font> |
| 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font> |
| 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font> |
| 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font> |
| 00013 <font class="comment"> * See the License for the specific language governing permissions and</font> |
| 00014 <font class="comment"> * limitations under the License.</font> |
| 00015 <font class="comment"> */</font> |
| 00016 <font class="preprocessor">#if !defined(URISUPPORT_HEADER_GUARD_1357924680)</font> |
| <a name="l00017"></a><a class="code" href="URISupport_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define URISUPPORT_HEADER_GUARD_1357924680</font> |
| 00018 <font class="preprocessor"></font> |
| 00019 |
| 00020 |
| 00021 <font class="comment">// Base include file. Must be first.</font> |
| 00022 <font class="preprocessor">#include <<a class="code" href="PlatformSupportDefinitions_8hpp.html">xalanc/PlatformSupport/PlatformSupportDefinitions.hpp</a>></font> |
| 00023 |
| 00024 |
| 00025 |
| 00026 <font class="preprocessor">#include <xercesc/util/XMLURL.hpp></font> |
| 00027 |
| 00028 |
| 00029 |
| 00030 <font class="preprocessor">#include <<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>></font> |
| 00031 |
| 00032 |
| 00033 |
| 00034 <font class="preprocessor">#include <<a class="code" href="XalanAutoPtr_8hpp.html">xalanc/Include/XalanAutoPtr.hpp</a>></font> |
| 00035 |
| 00036 |
| 00037 |
| 00038 <font class="preprocessor">#include <<a class="code" href="XSLException_8hpp.html">xalanc/PlatformSupport/XSLException.hpp</a>></font> |
| 00039 |
| 00040 |
| 00041 |
| 00042 XALAN_CPP_NAMESPACE_BEGIN |
| 00043 |
| 00044 |
| 00045 |
| <a name="l00046"></a><a class="code" href="URISupport_8hpp.html#a1">00046</a> <font class="keyword">typedef</font> XERCES_CPP_NAMESPACE_QUALIFIER XMLURL XMLURLType; |
| 00047 |
| 00048 |
| 00049 |
| <a name="l00050"></a><a class="code" href="classURISupport.html">00050</a> <font class="keyword">class </font>XALAN_PLATFORMSUPPORT_EXPORT <a class="code" href="classURISupport.html">URISupport</a> |
| 00051 { |
| 00052 <font class="keyword">public</font>: |
| 00053 |
| <a name="l00054"></a><a class="code" href="classURISupport.html#s0">00054</a> <font class="keyword">typedef</font> <a class="code" href="classXalanAutoPtr.html">XalanAutoPtr<XMLURLType></a> <a class="code" href="classXalanAutoPtr.html">URLAutoPtrType</a>; |
| 00055 |
| 00062 <font class="keyword">static</font> <a class="code" href="classXalanAutoPtr.html">URLAutoPtrType</a> |
| <a name="l00063"></a><a class="code" href="classURISupport.html#d0">00063</a> <a class="code" href="classURISupport.html#d0">getURLFromString</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& urlString, |
| 00064 MemoryManagerType& theManager)<font class="keyword"></font> |
| 00065 <font class="keyword"> </font>{ |
| 00066 <font class="keywordflow">return</font> <a class="code" href="classURISupport.html#d0">getURLFromString</a>(urlString.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(), theManager); |
| 00067 } |
| 00068 |
| 00075 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| <a name="l00076"></a><a class="code" href="classURISupport.html#d1">00076</a> <a class="code" href="classURISupport.html#d0">getURLFromString</a>( |
| 00077 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& urlString, |
| 00078 XMLURLType& url, |
| 00079 MemoryManagerType& theManager)<font class="keyword"></font> |
| 00080 <font class="keyword"> </font>{ |
| 00081 <a class="code" href="classURISupport.html#d0">getURLFromString</a>(urlString.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(), url, theManager); |
| 00082 } |
| 00083 |
| 00090 <font class="keyword">static</font> <a class="code" href="classXalanAutoPtr.html">URLAutoPtrType</a> |
| 00091 <a class="code" href="classURISupport.html#d0">getURLFromString</a>(<font class="keyword">const</font> XalanDOMChar* urlString, |
| 00092 MemoryManagerType& theManager); |
| 00093 |
| 00100 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| <a name="l00101"></a><a class="code" href="classURISupport.html#d3">00101</a> <a class="code" href="classURISupport.html#d0">getURLFromString</a>( |
| 00102 <font class="keyword">const</font> XalanDOMChar* urlString, |
| 00103 XMLURLType& url, |
| 00104 MemoryManagerType& theManager)<font class="keyword"></font> |
| 00105 <font class="keyword"> </font>{ |
| 00106 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> buffer(theManager); |
| 00107 |
| 00108 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>(urlString, buffer); |
| 00109 |
| 00110 url.setURL(buffer.<a class="code" href="classXalanDOMString.html#a33">c_str</a>()); |
| 00111 } |
| 00112 |
| 00120 <font class="keyword">static</font> <a class="code" href="classXalanAutoPtr.html">URLAutoPtrType</a> |
| <a name="l00121"></a><a class="code" href="classURISupport.html#d4">00121</a> <a class="code" href="classURISupport.html#d0">getURLFromString</a>( |
| 00122 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& urlString, |
| 00123 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& base, |
| 00124 MemoryManagerType& theManager)<font class="keyword"></font> |
| 00125 <font class="keyword"> </font>{ |
| 00126 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> theResult(theManager); |
| 00127 |
| 00128 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>(urlString, base, theResult); |
| 00129 |
| 00130 <font class="keywordflow">return</font> <a class="code" href="classURISupport.html#d0">getURLFromString</a>(theResult, theManager); |
| 00131 } |
| 00132 |
| 00140 <font class="keyword">static</font> <a class="code" href="classXalanAutoPtr.html">URLAutoPtrType</a> |
| 00141 <a class="code" href="classURISupport.html#d0">getURLFromString</a>( |
| 00142 <font class="keyword">const</font> XalanDOMChar* urlString, |
| 00143 <font class="keyword">const</font> XalanDOMChar* base); |
| 00144 |
| 00145 |
| 00152 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| <a name="l00153"></a><a class="code" href="classURISupport.html#d6">00153</a> <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00154 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& urlString, |
| 00155 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theNormalizedURI)<font class="keyword"></font> |
| 00156 <font class="keyword"> </font>{ |
| 00157 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>(urlString.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(), urlString.<a class="code" href="classXalanDOMString.html#a20">length</a>(), theNormalizedURI); |
| 00158 } |
| 00159 |
| 00160 |
| 00167 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| <a name="l00168"></a><a class="code" href="classURISupport.html#d7">00168</a> <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00169 <font class="keyword">const</font> XalanDOMChar* urlString, |
| 00170 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theNormalizedURI)<font class="keyword"></font> |
| 00171 <font class="keyword"> </font>{ |
| 00172 assert(urlString != 0); |
| 00173 |
| 00174 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00175 urlString, |
| 00176 XalanDOMString::length(urlString), |
| 00177 theNormalizedURI); |
| 00178 } |
| 00179 |
| 00187 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| 00188 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00189 <font class="keyword">const</font> XalanDOMChar* urlString, |
| 00190 XalanDOMString::size_type len, |
| 00191 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theNormalizedURI); |
| 00192 |
| 00200 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| <a name="l00201"></a><a class="code" href="classURISupport.html#d9">00201</a> <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00202 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& urlString, |
| 00203 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& base, |
| 00204 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theNormalizedURI)<font class="keyword"></font> |
| 00205 <font class="keyword"> </font>{ |
| 00206 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>(urlString.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(), base.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(), theNormalizedURI); |
| 00207 } |
| 00208 |
| 00209 |
| 00217 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| <a name="l00218"></a><a class="code" href="classURISupport.html#d10">00218</a> <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00219 <font class="keyword">const</font> XalanDOMChar* urlString, |
| 00220 <font class="keyword">const</font> XalanDOMChar* base, |
| 00221 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theNormalizedURI)<font class="keyword"></font> |
| 00222 <font class="keyword"> </font>{ |
| 00223 assert(urlString != 0 && base != 0); |
| 00224 |
| 00225 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00226 urlString, |
| 00227 XalanDOMString::length(urlString), |
| 00228 base, |
| 00229 <a class="code" href="classXalanDOMString.html#a20">XalanDOMString::length</a>(base), |
| 00230 theNormalizedURI); |
| 00231 } |
| 00232 |
| 00240 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| 00241 <a class="code" href="classURISupport.html#d6">getURLStringFromString</a>( |
| 00242 <font class="keyword">const</font> XalanDOMChar* urlString, |
| 00243 XalanDOMString::size_type urlStringLen, |
| 00244 <font class="keyword">const</font> XalanDOMChar* base, |
| 00245 XalanDOMString::size_type baseLen, |
| 00246 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theNormalizedURI); |
| 00247 |
| 00255 <font class="keyword">static</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& |
| 00256 <a class="code" href="classURISupport.html#d12">NormalizeURIText</a>(<a class="code" href="classXalanDOMString.html">XalanDOMString</a>& uriString); |
| 00257 |
| 00265 |
| 00266 |
| <a name="l00267"></a><a class="code" href="classURISupport_1_1InvalidURIException.html">00267</a> <font class="keyword">class </font>InvalidURIException : <font class="keyword">public</font> <a class="code" href="classXSLException.html">XSLException</a> |
| 00268 { |
| 00269 <font class="keyword">public</font>: |
| 00270 |
| 00276 <a class="code" href="classURISupport_1_1InvalidURIException.html#a0">InvalidURIException</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage, |
| 00277 MemoryManagerType& theManager); |
| 00278 |
| 00279 <font class="keyword">virtual</font> |
| 00280 <a class="code" href="classURISupport_1_1InvalidURIException.html#a1">~InvalidURIException</a>(); |
| 00281 |
| 00282 <font class="keyword">virtual</font> <font class="keyword">const</font> XalanDOMChar* |
| <a name="l00283"></a><a class="code" href="classURISupport_1_1InvalidURIException.html#a2">00283</a> <a class="code" href="classURISupport_1_1InvalidURIException.html#a2">getType</a>()<font class="keyword"> const</font> |
| 00284 <font class="keyword"> </font>{ |
| 00285 <font class="keywordflow">return</font> m_type; |
| 00286 } |
| 00287 |
| 00288 <font class="keyword">private</font>: |
| 00289 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar m_type[]; |
| 00290 }; |
| 00291 |
| 00292 |
| <a name="l00293"></a><a class="code" href="classURISupport.html#p0">00293</a> <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_fileProtocolString1[]; |
| 00294 |
| <a name="l00295"></a><a class="code" href="classURISupport.html#p1">00295</a> <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_fileProtocolString2[]; |
| 00296 }; |
| 00297 |
| 00298 |
| 00299 |
| 00300 XALAN_CPP_NAMESPACE_END |
| 00301 |
| 00302 |
| 00303 |
| 00304 <font class="preprocessor">#endif // URISUPPORT_HEADER_GUARD_1357924680</font> |
| </font></pre></div><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
|
| <p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
|
| <i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
|
| <A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
|
|
|
| <TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
|
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
|
| <TR>
|
| <TD WIDTH="80%" VALIGN="TOP">
|
| <P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
|
| Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
|
| </TD>
|
| </TR>
|
| <TR>
|
| <TD WIDTH="100%">
|
| <P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
|
| </TD>
|
| </TR>
|
| </TABLE>
|