/*
******************************************************************************
-* Copyright (C) 1999-2001, International Business Machines Corporation and *
+* Copyright (C) 1999-2004, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
* Date Name Description
#define HINT_KEY_POINTER (1)
#define HINT_KEY_INTEGER (0)
-const char UVector::fgClassID=0;
+UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UVector)
UVector::UVector(UErrorCode &status) :
count(0),
}
void UVector::_init(int32_t initialCapacity, UErrorCode &status) {
+ if (U_FAILURE(status)) {
+ return;
+ }
// Fix bogus initialCapacity values; avoid malloc(0)
if (initialCapacity < 1) {
initialCapacity = DEFUALT_CAPACITY;
}
}
-const char UStack::fgClassID=0;
-
UStack::UStack(UErrorCode &status) :
UVector(status)
{
{
}
+UStack::~UStack() {}
+
void* UStack::pop(void) {
int32_t n = size() - 1;
void* result = 0;