| ********************************************************************** |
| * Copyright (C) 2003-2011, International Business Machines |
| * Corporation and others. All Rights Reserved. |
| ********************************************************************** |
| #include "starboard/client_porting/poem/string_poem.h" |
| UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UStack) |
| UStack::UStack(UErrorCode &status) : |
| UStack::UStack(int32_t initialCapacity, UErrorCode &status) : |
| UVector(initialCapacity, status) |
| UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, UErrorCode &status) : |
| UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status) : |
| UVector(d, c, initialCapacity, status) |
| void* UStack::pop(void) { |
| int32_t UStack::popi(void) { |
| int32_t UStack::search(void* obj) const { |
| int32_t i = indexOf(obj); |
| return (i >= 0) ? size() - i : i; |