3 #import <Cocoa/Cocoa.h>
13 NSAutoreleasePool *
pool = [[NSAutoreleasePool alloc]
init];
14 CFLocaleRef myCFLocale = CFLocaleCopyCurrent();
15 NSLocale *myNSLocale = (NSLocale *)myCFLocale;
16 [myNSLocale autorelease];
22 const NSString *nsIdentifier = [myNSLocale languageCode];
23 const NSString *
const nsIdentifier_country = [myNSLocale countryCode];
24 if ([nsIdentifier
length] != 0 && [nsIdentifier_country
length] != 0) {
25 nsIdentifier = [NSString stringWithFormat:
@"%@_%@", nsIdentifier, nsIdentifier_country];
void BLI_kdtree_nd_() free(KDTree *tree)
SIMD_FORCE_INLINE btScalar length(const btQuaternion &q)
Return the length of a quaternion.
static char * user_locale
const char * osx_user_locale()