]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/localsvc.cpp
2 // localsvc.cpp -- Apple-specific service hook
3 // Copyright (c) 2007 Apple Inc. All rights reserved.
6 #include "unicode/utypes.h"
8 #if !UCONFIG_NO_BREAK_ITERATION
13 #include <TargetConditionals.h>
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
)
19 if (uprv_strcmp(what
, "languageBreakFactory") == 0) {
20 #if defined(U_DARWIN) && TARGET_OS_MAC
21 return new AppleLanguageBreakFactory(*status
);