Symbian3/PDK/Source/GUID-94C64AC2-5680-4DED-8CCB-55CD5C25F1E5.dita
changeset 5 f345bda72bc4
parent 1 25a17d01db0c
child 12 80ef3a206772
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
     6 <!-- Initial Contributors:
     6 <!-- Initial Contributors:
     7 	Nokia Corporation - initial contribution.
     7     Nokia Corporation - initial contribution.
     8 Contributors: 
     8 Contributors: 
     9 -->  <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"><concept id="GUID-94C64AC2-5680-4DED-8CCB-55CD5C25F1E5" xml:lang="en"><title>Resource
     9 -->
    10 string handling</title><prolog><metadata><keywords></keywords></metadata></prolog><conbody>
    10 <!DOCTYPE concept
    11 <p>The Symbian platform provides support for loading and formatting
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 resource strings through the StringLoader class.
    12 <concept id="GUID-94C64AC2-5680-4DED-8CCB-55CD5C25F1E5" xml:lang="en"><title>Resource
       
    13 string handling</title><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <p>The Symbian platform provides support for loading and formatting resource
       
    15 strings through the <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/String_Loader_APIIndexPage.html" format="application/java-archive"><parmname>StringLoader</parmname> class</xref>.
    13 To use this class, you must define your strings in the resource file with
    16 To use this class, you must define your strings in the resource file with
    14 the <parmname>RESOURCE TBUF</parmname> statement.</p>
    17 the <parmname>RESOURCE TBUF</parmname> statement.</p>
    15 <p>The syntax for the resource string declaration is as follows:</p>
    18 <p>The syntax for the resource string declaration is as follows:</p>
    16 <codeblock xml:space="preserve" id="GUID-04157BE9-A433-44BB-94B1-F6D32FF51163">RESOURCE TBUF r_name34 { buf = STRING_value_in_rls_file; }</codeblock>
    19 <codeblock id="GUID-04157BE9-A433-44BB-94B1-F6D32FF51163" xml:space="preserve">RESOURCE TBUF r_name34 { buf = STRING_value_in_rls_file; }</codeblock>
    17 <p>where</p>
    20 <p>where</p>
    18 <ul>
    21 <ul>
    19 <li><p><parmname>RESOURCE</parmname> is the keyword for the statement</p>
    22 <li><p><parmname>RESOURCE</parmname> is the keyword for the statement.</p>
    20 </li>
    23 </li>
    21 <li><p><parmname>TBUF</parmname> is a utility structure to contain
    24 <li><p><parmname>TBUF</parmname> is a utility structure to contain
    22 the string</p></li>
    25 the string.</p></li>
    23 <li><p><parmname>r_name34</parmname> is the symbolic ID used in
    26 <li><p><parmname>r_name34</parmname> is the symbolic ID used in
    24 your code</p></li>
    27 your code.</p></li>
    25 <li><p><parmname>STRING_value_in_rls_file</parmname> maps to a value
    28 <li><p><parmname>STRING_value_in_rls_file</parmname> maps to a value
    26 in an <parmname>rls</parmname> file to support <xref href="GUID-9EA7B72B-8394-48B8-A0CC-4BB34CBDB01C.dita">localization
    29 in an <parmname>rls</parmname> file to support <xref href="GUID-9EA7B72B-8394-48B8-A0CC-4BB34CBDB01C.dita">localization
    27 and internationalization</xref></p></li>
    30 and internationalization</xref>.</p></li>
    28 </ul>
    31 </ul>
    29 <p> For more information, see <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-resource/bafl/TBUFStruct.html#TBUF" format="application/java-archive"><parmname>TBUF</parmname></xref>.</p>
    32 <p> For more information, see <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-resource/bafl/TBUFStruct.html#TBUF" format="application/java-archive"><parmname>TBUF</parmname></xref>.</p>
    30 </conbody></concept>
    33 </conbody></concept>