Home | History | Annotate | only in /external/icu4c/samples/uresb
Up to higher level directory
NameDateSize
en.txt19-Dec-20101.8K
Makefile19-Dec-20101.8K
readme.txt19-Dec-20102.3K
resources.mak19-Dec-2010563
resources.vcproj19-Dec-20103.6K
root.txt19-Dec-20101.8K
sr.txt19-Dec-20101.8K
uresb.c19-Dec-201010.3K
uresb.sln19-Dec-20102.1K
uresb.vcproj19-Dec-20109.2K

readme.txt

      1 Copyright (c) 2001-2005 International Business Machines
      2 Corporation and others. All Rights Reserved.
      3 uresb: Resource Bundle
      4 
      5 This sample demonstrates
      6          Building a resource bundle
      7          Using ICU to print data from a resource bundle
      8 
      9          
     10 Files:
     11     uresb.c        Main source file in C
     12     uresb.sln      Windows MSVC workspace.  Double-click this to get started.
     13     uresb.vcproj   Windows MSVC project file
     14     resources.dsp  Windows project file for resources
     15     resources.mak  Windows makefile for resources
     16 
     17     root.txt       Root resource bundle
     18     en.txt         English translation
     19     sr.txt         Serbian translation (cp1251)
     20 
     21 To Build uresb on Windows
     22     1.  Install and build ICU
     23     2.  In MSVC, open the workspace file icu\samples\uresb\uresb.sln
     24     3.  Choose a Debug or Release build.
     25     4.  Build.
     26 	
     27 To Run on Windows
     28     1.  Start a command shell window
     29     2.  Add ICU's bin directory to the path, e.g.
     30             set PATH=c:\icu\bin;%PATH%
     31         (Use the path to where ever ICU is on your system.)
     32     3.  cd into the uresb directory, e.g.
     33             cd c:\icu\source\samples\uresb\debug
     34     4.  Run it  (with a locale name, ex. english)
     35             uresb  en
     36 
     37 To Build on Unixes
     38     1.  Build ICU.  
     39         Specify an ICU install directory when running configure,
     40         using the --prefix option.  The steps to build ICU will look something
     41         like this:
     42            cd <icu directory>/source
     43            runConfigureICU <platform-name> --prefix <icu install directory> [other options]
     44            gmake all
     45            
     46     2.  Install ICU, 
     47            gmake install
     48  
     49     3.  Compile
     50            cd <icu directory>/source/samples/uresb
     51            gmake ICU_PREFIX=<icu install directory) ICU_PATH=<icu source directory>
     52            
     53  To Run on Unixes
     54            cd <icu directory>/source/samples/uresb
     55            
     56            gmake ICU_PREFIX=<icu install directory>  check
     57                -or- 
     58 
     59            export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
     60            uresb
     61            
     62            
     63  Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
     64         If in doubt, run the sample using "gmake check", and note the name of
     65         the variable that is used there.  LD_LIBRARY_PATH is the correct name
     66         for Linux and Solaris.
     67 
     68