• Home
Name Date Size #Lines LOC

..--

MakefileD03-May-2024484 234

coll.cppD03-May-20247.9 KiB267221

coll.slnD03-May-20241.2 KiB2625

coll.vcxprojD03-May-202413.4 KiB247246

coll.vcxproj.filtersD03-May-2024900 2222

readme.txtD03-May-20242 KiB5643

readme.txt

1Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved.
2coll: a sample program which compares 2 strings with a user-defined collator.
3
4This sample demonstrates
5         Creating a user-defined collator
6         Comparing 2 string using the collator created
7
8Files:
9    coll.c                      Main source file
10    coll.sln                    Windows MSVC workspace.  Double-click this to get started.
11    coll.vcproj                 Windows MSVC project file
12
13To Build coll on Windows
14    1.  Install and build ICU
15    2.  In MSVC, open the workspace file icu\samples\coll\coll.sln
16    3.  Choose a Debug or Release build.
17    4.  Build.
18
19To Run on Windows
20    1.  Start a command shell window
21    2.  Add ICU's bin directory to the path, e.g.
22            set PATH=c:\icu\bin;%PATH%
23        (Use the path to where ever ICU is on your system.)
24    3.  cd into the coll directory, e.g.
25            cd c:\icu\source\samples\coll\debug
26    4.  Run it
27            coll [options*] -source source_string -target target_string
28
29To Build on Unixes
30    1.  Build ICU.  coll is built automatically by default unless samples are turned off.
31        Specify an ICU install directory when running configure,
32        using the --prefix option.  The steps to build ICU will look something
33        like this:
34           cd <icu directory>/source
35           runConfigureICU <platform-name> --prefix <icu install directory> [other options]
36           gmake all
37
38    2.  Install ICU,
39           gmake install
40
41 To Run on Unixes
42           cd <icu directory>/source/samples/coll
43
44           gmake check
45               -or-
46
47           export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
48           cal
49
50
51 Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
52        If in doubt, run the sample using "gmake check", and note the name of
53        the variable that is used there.  LD_LIBRARY_PATH is the correct name
54        for Linux and Solaris.
55
56