Symbian3/PDK/Source/GUID-8F5BC47B-0551-5245-A1ED-629380111B43.dita
changeset 1 25a17d01db0c
child 3 46218c8b8afa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Symbian3/PDK/Source/GUID-8F5BC47B-0551-5245-A1ED-629380111B43.dita	Fri Jan 22 18:26:19 2010 +0000
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
+<!-- This component and the accompanying materials are made available under the terms of the License 
+"Eclipse Public License v1.0" which accompanies this distribution, 
+and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
+<!-- Initial Contributors:
+    Nokia Corporation - initial contribution.
+Contributors: 
+-->
+<!DOCTYPE task
+  PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
+<task id="GUID-8F5BC47B-0551-5245-A1ED-629380111B43" xml:lang="en"><title>Validating
+an URI</title><shortdesc>This tutorial describes the steps to validate an URI. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody>
+<steps-unordered>
+<step id="GUID-FF589874-C69D-49F1-8AF4-9414524E15B4"><cmd/>
+<info><p>Check the validity of components within an URI using <xref href="GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1.dita#GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1/GUID-9B6C3634-7E19-39B5-A12F-80A16DDCFF4E"><apiname>TUriParser8::Validate()</apiname></xref>. <note>This
+function validates only SIP and SIPS scheme components. </note> </p></info>
+<stepxmp><codeblock xml:space="preserve">_LIT8( KUri,"http://web.intra/Dev/Sysdoc/devlib.htm" );
+TUriParser8* parser;
+//validate the parsed URI
+TInt result = parser-&gt;Validate();</codeblock></stepxmp>
+<stepresult><p><xref href="GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1.dita#GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1/GUID-9B6C3634-7E19-39B5-A12F-80A16DDCFF4E"><apiname>TUriParser8::Validate()</apiname></xref> returns: <ul>
+<li><p><codeph>KErrNone</codeph>, if the URI is shown as valid. </p></li>
+<li><p><codeph>KUriUtilsErrInvalidUri</codeph>, if the URI is shown as invalid. </p></li>
+<li><p><codeph>KErrNotSupported</codeph>, if the URI cannot be shown as valid. </p></li>
+</ul></p></stepresult>
+</step>
+</steps-unordered>
+</taskbody><related-links>
+<link href="GUID-795B41AF-FBEA-56CE-AE20-EF17BE754723.dita"><linktext>Http Utilities
+Library Overview</linktext></link>
+</related-links></task>
\ No newline at end of file