localsvc.cpp   [plain text]


//
// localsvc.cpp -- Apple-specific service hook
// Copyright (c) 2007 Apple Inc. All rights reserved.
//

#include "unicode/utypes.h"

#if !UCONFIG_NO_BREAK_ITERATION

#include "aaplbfct.h"
#include "cstring.h"
// platform.h now includes <TargetConditionals.h> if U_PLATFORM_IS_DARWIN_BASED

// Return an appropriate Apple-specific object, based on the service in question
U_CAPI void* uprv_svc_hook(const char *what, UErrorCode *status)
{
	if (uprv_strcmp(what, "languageBreakFactory") == 0) {
#if U_PLATFORM_IS_DARWIN_BASED && TARGET_OS_MAC
		return new icu::AppleLanguageBreakFactory(*status);
	}
#else
	}
#endif
	return NULL;
}

#endif