]> git.saurik.com Git - apple/icu.git/blob - icuSources/common/localsvc.cpp
ICU-461.17.tar.gz
[apple/icu.git] / icuSources / common / localsvc.cpp
1 //
2 // localsvc.cpp -- Apple-specific service hook
3 // Copyright (c) 2007 Apple Inc. All rights reserved.
4 //
5
6 #include "unicode/utypes.h"
7
8 #if !UCONFIG_NO_BREAK_ITERATION
9
10 #include "aaplbfct.h"
11 #include "cstring.h"
12 #if defined(U_DARWIN)
13 #include <TargetConditionals.h>
14 #endif
15
16 // Return an appropriate Apple-specific object, based on the service in question
17 U_CAPI void* uprv_svc_hook(const char *what, UErrorCode *status)
18 {
19 if (uprv_strcmp(what, "languageBreakFactory") == 0) {
20 #if defined(U_DARWIN) && TARGET_OS_MAC
21 return new AppleLanguageBreakFactory(*status);
22 }
23 #else
24 }
25 #endif
26 return NULL;
27 }
28
29 #endif