]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/resbund_cnv.cpp
2 *******************************************************************************
4 * Copyright (C) 1997-2006, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: resbund_cnv.cpp
10 * tab size: 8 (not used)
13 * created on: 2004aug25
14 * created by: Markus W. Scherer
16 * Character conversion functions moved here from resbund.cpp
19 #include "unicode/utypes.h"
20 #include "unicode/resbund.h"
25 ResourceBundle::ResourceBundle( const UnicodeString
& path
,
28 :UObject(), fLocale(NULL
)
30 constructForLocale(path
, locale
, error
);
33 ResourceBundle::ResourceBundle( const UnicodeString
& path
,
35 :UObject(), fLocale(NULL
)
37 constructForLocale(path
, Locale::getDefault(), error
);
41 ResourceBundle::constructForLocale(const UnicodeString
& path
,
46 fResource
= ures_open(NULL
, locale
.getName(), &error
);
49 UnicodeString
nullTerminatedPath(path
);
50 nullTerminatedPath
.append((UChar
)0);
51 fResource
= ures_openU(nullTerminatedPath
.getBuffer(), locale
.getName(), &error
);