1 Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved.
2 break: Boundary Analysis
4 This sample demonstrates
5 Using ICU to determine the linguistic boundaries within text
9 break.cpp Main source file in C++
10 ubreak.c Main source file in C
11 break.sln Windows MSVC workspace. Double-click this to get started.
12 break.vcproj Windows MSVC project file
14 To Build break on Windows
15 1. Install and build ICU
16 2. In MSVC, open the workspace file icu\samples\break\break.sln
17 3. Choose a Debug or Release build.
21 1. Start a command shell window
22 2. Add ICU's bin directory to the path, e.g.
23 set PATH=c:\icu\bin;%PATH%
24 (Use the path to where ever ICU is on your system.)
25 3. cd into the break directory, e.g.
26 cd c:\icu\source\samples\break\debug
27 4. Run it (Warning: Be careful, 'break' is also a system command on many systems)
32 Specify an ICU install directory when running configure,
33 using the --prefix option. The steps to build ICU will look something
35 cd <icu directory>/source
36 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
43 cd <icu directory>/source/samples/break
44 gmake ICU_PREFIX=<icu install directory)
47 cd <icu directory>/source/samples/break
49 gmake ICU_PREFIX=<icu install directory> check
52 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
56 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
57 If in doubt, run the sample using "gmake check", and note the name of
58 the variable that is used there. LD_LIBRARY_PATH is the correct name
59 for Linux and Solaris.