+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
-* Copyright (C) 2000-2014, International Business Machines
+* Copyright (C) 2000-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
#include "cmemory.h"
#include "transrt.h"
#include "testutil.h"
+#include "uassert.h"
#include <string.h>
#include <stdio.h>
break;
case U_TITLECASE_LETTER:
if (haveLower) return TRUE;
- // drop through, since second letter is lower.
+ // fall through, since second letter is lower.
+ U_FALLTHROUGH;
case U_LOWERCASE_LETTER:
haveLower = TRUE;
break;
UBool isError = FALSE;
int32_t destIdx = 0;
U8_APPEND(bufForOneChar, destIdx, (int32_t)sizeof(bufForOneChar), c, isError);
+ U_ASSERT(!isError);
fwrite(bufForOneChar, 1, destIdx, out);
}
}
void TransliteratorRoundTripTest::TestInterIndic() {
//TestDebug("Latin-Gurmukhi", latinForIndic, "[:Gurmukhi:]","[\\u0965\\u0a02\\u0a72\\u0a73\\u0a74]",TRUE);
- int32_t num = (int32_t)(sizeof(interIndicArray)/(INTER_INDIC_ARRAY_WIDTH*sizeof(char*)));
+ int32_t num = UPRV_LENGTHOF(interIndicArray)/INTER_INDIC_ARRAY_WIDTH;
if(quick){
logln("Testing only 5 of %i. Skipping rest (use -e for exhaustive)",num);
num = 5;