1 Copyright (C) 2016 and later: Unicode, Inc. and others.
2 License & terms of use: http://www.unicode.org/copyright.html#License
4 Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved.
5 break: Boundary Analysis
7 This sample demonstrates
8 Using ICU to determine the linguistic boundaries within text
12 break.cpp Main source file in C++
13 ubreak.c Main source file in C
14 break.sln Windows MSVC workspace. Double-click this to get started.
15 break.vcproj Windows MSVC project file
17 To Build break on Windows
18 1. Install and build ICU
19 2. In MSVC, open the workspace file icu\samples\break\break.sln
20 3. Choose a Debug or Release build.
24 1. Start a command shell window
25 2. Add ICU's bin directory to the path, e.g.
26 set PATH=c:\icu\bin;%PATH%
27 (Use the path to where ever ICU is on your system.)
28 3. cd into the break directory, e.g.
29 cd c:\icu\source\samples\break\debug
30 4. Run it (Warning: Be careful, 'break' is also a system command on many systems)
35 Specify an ICU install directory when running configure,
36 using the --prefix option. The steps to build ICU will look something
38 cd <icu directory>/source
39 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
46 cd <icu directory>/source/samples/break
47 gmake ICU_PREFIX=<icu install directory)
50 cd <icu directory>/source/samples/break
52 gmake ICU_PREFIX=<icu install directory> check
55 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
59 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
60 If in doubt, run the sample using "gmake check", and note the name of
61 the variable that is used there. LD_LIBRARY_PATH is the correct name
62 for Linux and Solaris.