]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/rbbiapts.h
1 /********************************************************************
3 * Copyright (c) 1999-2004, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /************************************************************************
7 * Date Name Description
8 * 12/14/99 Madhu Creation.
9 ************************************************************************/
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_BREAK_ITERATION
21 #include "unicode/rbbi.h"
24 * API Test the RuleBasedBreakIterator class
26 class RBBIAPITest
: public IntlTest
{
30 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
32 * Tests Constructor behaviour of RuleBasedBreakIterator
34 // void TestConstruction(void);
36 * Tests clone() and equals() methods of RuleBasedBreakIterator
38 void TestCloneEquals();
40 * Tests toString() method of RuleBasedBreakIterator
44 * Tests the method hashCode() of RuleBasedBreakIterator
48 * Tests the methods getText() and setText() of RuleBasedBreakIterator
50 void TestGetSetAdoptText();
52 * Testing the iteration methods of RuleBasedBreakIterator
54 void TestIteration(void);
58 * Tests creating RuleBasedBreakIterator from rules strings.
60 void TestBuilder(void);
62 void TestRoundtripRules(void);
64 void RoundtripRule(const char *dataFile
);
67 * Tests grouping effect of 'single quotes' in rules.
69 void TestQuoteGrouping();
72 * Tests word break status returns.
74 void TestRuleStatus();
75 void TestRuleStatusVec();
79 void TestBoilerPlate();
81 void TestRegistration();
86 /* Internal subroutine used by TestIsBoundary() */
87 void doBoundaryTest(RuleBasedBreakIterator
& bi
, UnicodeString
& text
, int32_t *boundaries
);
89 /*Internal subroutine used for comparision of expected and acquired results */
90 void doTest(UnicodeString
& testString
, int32_t start
, int32_t gotoffset
, int32_t expectedOffset
, const char* expected
);
95 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */