Lines Matching refs:ec
21 TextFile::TextFile(const char* _name, const char* _encoding, UErrorCode& ec) :
28 if (U_FAILURE(ec) || _name == 0 || _encoding == 0) {
29 if (U_SUCCESS(ec)) {
30 ec = U_ILLEGAL_ARGUMENT_ERROR;
39 ec = U_MEMORY_ALLOCATION_ERROR;
49 const char* testDir = IntlTest::getSourceTestData(ec);
50 if (U_FAILURE(ec)) {
54 ec = U_MEMORY_ALLOCATION_ERROR;
62 ec = U_ILLEGAL_ARGUMENT_ERROR;
76 UBool TextFile::readLine(UnicodeString& line, UErrorCode& ec) {
98 if (!setBuffer(n++, c, ec)) return FALSE;
100 if (!setBuffer(n++, 0, ec)) return FALSE;
111 UBool TextFile::readLineSkippingComments(UnicodeString& line, UErrorCode& ec,
114 if (!readLine(line, ec)) return FALSE;
132 UBool TextFile::setBuffer(int32_t index, char c, UErrorCode& ec) {
135 ec = U_MEMORY_ALLOCATION_ERROR;