Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: source/test/intltest/sfwdchit.cpp

Issue 2435373002: Delete source/test (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/sfwdchit.h ('k') | source/test/intltest/simplepatternformattertest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/sfwdchit.cpp
diff --git a/source/test/intltest/sfwdchit.cpp b/source/test/intltest/sfwdchit.cpp
deleted file mode 100644
index 703a4858e60154d8ef9e6736fbb98e8e71855bad..0000000000000000000000000000000000000000
--- a/source/test/intltest/sfwdchit.cpp
+++ /dev/null
@@ -1,120 +0,0 @@
-/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2003, International Business Machines Corporation and
- * others. All Rights Reserved.
- ********************************************************************/
-/* file name: sfwdchit.cpp
-* encoding: US-ASCII
-* tab size: 8 (not used)
-* indentation:4
-*/
-
-#include "sfwdchit.h"
-#include "unicode/ustring.h"
-#include "unicode/unistr.h"
-#include "uhash.h"
-#include "cmemory.h"
-
-// A hash code of kInvalidHashCode indicates that the has code needs
-// to be computed. A hash code of kEmptyHashCode is used for empty keys
-// and for any key whose computed hash code is kInvalidHashCode.
-const int32_t SimpleFwdCharIterator::kInvalidHashCode = 0;
-const int32_t SimpleFwdCharIterator::kEmptyHashCode = 1;
-
-#if 0 // not used
-SimpleFwdCharIterator::SimpleFwdCharIterator(const UnicodeString& s) {
-
- fHashCode = kInvalidHashCode;
- fLen = s.length();
- fStart = new UChar[fLen];
- if(fStart == NULL) {
- fBogus = TRUE;
- } else {
- fEnd = fStart+fLen;
- fCurrent = fStart;
- fBogus = FALSE;
- s.extract(0, fLen, fStart);
- }
-
-}
-#endif
-
-SimpleFwdCharIterator::SimpleFwdCharIterator(UChar *s, int32_t len, UBool adopt) {
-
- fHashCode = kInvalidHashCode;
-
- fLen = len==-1 ? u_strlen(s) : len;
-
- if(adopt == FALSE) {
- fStart = new UChar[fLen];
- if(fStart == NULL) {
- fBogus = TRUE;
- } else {
- uprv_memcpy(fStart, s, fLen);
- fEnd = fStart+fLen;
- fCurrent = fStart;
- fBogus = FALSE;
- }
- } else { // adopt = TRUE
- fCurrent = fStart = s;
- fEnd = fStart + fLen;
- fBogus = FALSE;
- }
-
-}
-
-SimpleFwdCharIterator::~SimpleFwdCharIterator() {
- delete[] fStart;
-}
-
-#if 0 // not used
-UBool SimpleFwdCharIterator::operator==(const ForwardCharacterIterator& that) const {
- if(this == &that) {
- return TRUE;
- }
-/*
- if(that->fHashCode != kInvalidHashCode && this->fHashCode = that->fHashCode) {
- return TRUE;
- }
-
- if(this->fStart == that->fStart) {
- return TRUE;
- }
-
- if(this->fLen == that->fLen && uprv_memcmp(this->fStart, that->fStart, this->fLen) {
- return TRUE;
- }
-*/
- return FALSE;
-}
-#endif
-
-int32_t SimpleFwdCharIterator::hashCode(void) const {
- if (fHashCode == kInvalidHashCode)
- {
- UHashTok key;
- key.pointer = fStart;
- ((SimpleFwdCharIterator *)this)->fHashCode = uhash_hashUChars(key);
- }
- return fHashCode;
-}
-
-UClassID SimpleFwdCharIterator::getDynamicClassID(void) const {
- return NULL;
-}
-
-UChar SimpleFwdCharIterator::nextPostInc(void) {
- if(fCurrent == fEnd) {
- return ForwardCharacterIterator::DONE;
- } else {
- return *(fCurrent)++;
- }
-}
-
-UChar32 SimpleFwdCharIterator::next32PostInc(void) {
- return ForwardCharacterIterator::DONE;
-}
-
-UBool SimpleFwdCharIterator::hasNext() {
- return fCurrent < fEnd;
-}
« no previous file with comments | « source/test/intltest/sfwdchit.h ('k') | source/test/intltest/simplepatternformattertest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698