mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-5032 Increase code coverage. Bad input should fail and not succeed.
X-SVN-Rev: 19468
This commit is contained in:
parent
7aa9c4c444
commit
dbe243b118
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2002-2004, International Business Machines
|
||||
* Copyright (C) 2002-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -48,6 +48,8 @@ noopCurrent(UCharIterator * /*iter*/) {
|
|||
return U_SENTINEL;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Setting/Getting the state on illegal input isn't allowed. */
|
||||
static uint32_t U_CALLCONV
|
||||
noopGetState(const UCharIterator * /*iter*/) {
|
||||
return 0;
|
||||
|
@ -56,6 +58,7 @@ noopGetState(const UCharIterator * /*iter*/) {
|
|||
static void U_CALLCONV
|
||||
noopSetState(UCharIterator * /*iter*/, uint32_t /*state*/, UErrorCode * /*pErrorCode*/) {
|
||||
}
|
||||
#endif
|
||||
|
||||
static const UCharIterator noopIterator={
|
||||
0, 0, 0, 0, 0, 0,
|
||||
|
@ -67,8 +70,8 @@ static const UCharIterator noopIterator={
|
|||
noopCurrent,
|
||||
noopCurrent,
|
||||
NULL,
|
||||
noopGetState,
|
||||
noopSetState
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
/* UCharIterator implementation for simple strings -------------------------- */
|
||||
|
|
Loading…
Add table
Reference in a new issue