コード例 #1
0
ファイル: Stubs.cpp プロジェクト: AlgebraBurger/swift
static locale_t getCLocale() {
  return SWIFT_LAZY_CONSTANT(makeCLocale());
}
コード例 #2
0
// According to this thread in the ICU mailing list, it should be safe
// to assume the UCollator object is thread safe so long as you're only
// passing it to functions that take a const pointer to it. So, we make it
// const here to make sure we don't misuse it.
// http://sourceforge.net/p/icu/mailman/message/27427062/
static const UCollator *GetRootCollator() {
  return SWIFT_LAZY_CONSTANT(MakeRootCollator());
}