]>
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
12 // platform.h now includes <TargetConditionals.h> if U_PLATFORM_IS_DARWIN_BASED
14 // Return an appropriate Apple-specific object, based on the service in question
15 U_CAPI
void* uprv_svc_hook(const char *what
, UErrorCode
*status
)
17 if (uprv_strcmp(what
, "languageBreakFactory") == 0) {
18 #if U_PLATFORM_IS_DARWIN_BASED && TARGET_OS_MAC
19 return new icu::AppleLanguageBreakFactory(*status
);