]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/dbbi_tbl.cpp
2 **********************************************************************
3 * Copyright (C) 1999-2002 IBM Corp. All rights reserved.
4 **********************************************************************
5 * Date Name Description
6 * 12/1/99 rgillam Complete port from Java.
7 * 01/13/2000 helena Added UErrorCode to ctors.
8 * 06/14/2002 andy Gutted for new RBBI impl.
9 **********************************************************************
12 #include "unicode/utypes.h"
14 #if !UCONFIG_NO_BREAK_ITERATION
17 #include "unicode/dbbi.h"
22 //=======================================================================
24 //=======================================================================
26 DictionaryBasedBreakIteratorTables::DictionaryBasedBreakIteratorTables(
27 const char* dictionaryFilename
,
29 fDictionary
= new BreakDictionary(dictionaryFilename
, status
);
34 void DictionaryBasedBreakIteratorTables::addReference() {
35 umtx_atomic_inc(&fRefCount
);
39 void DictionaryBasedBreakIteratorTables::removeReference() {
40 if (umtx_atomic_dec(&fRefCount
) == 0) {
49 DictionaryBasedBreakIteratorTables::~DictionaryBasedBreakIteratorTables() {
57 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */