|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <rw_testdefs.h>

Go to the source code of this file.
Macros | |
| #define | CMP_NULTERM 1 /* the first 0 terminates processing */ |
| #define | CMP_RETOFF 2 /* return offset of the first mismatch */ |
| #define | CMP_NOCASE 4 /* case-insensitive character comparison */ |
| #define | CMP_FP 8 /* safe floating pointing comparison */ |
Functions | |
| _TEST_EXPORT int | rw_valcmp (const void *, const void *, _RWSTD_SIZE_T, _RWSTD_SIZE_T, _RWSTD_SIZE_T, int) |
| template<class T , class U > | |
| int | rw_valcmp (const T *buf1, const U *buf2, _RWSTD_SIZE_T nelems, int flags=0) |
| _TEST_EXPORT int | rw_strncmp (const char *, const char *, _RWSTD_SIZE_T=_RWSTD_SIZE_MAX, int=CMP_NULTERM) |
| _TEST_EXPORT int | rw_strncmp (const char *, const wchar_t *, _RWSTD_SIZE_T=_RWSTD_SIZE_MAX, int=CMP_NULTERM) |
| _TEST_EXPORT int | rw_strncmp (const wchar_t *, const char *, _RWSTD_SIZE_T=_RWSTD_SIZE_MAX, int=CMP_NULTERM) |
| _TEST_EXPORT int | rw_strncmp (const wchar_t *, const wchar_t *, _RWSTD_SIZE_T=_RWSTD_SIZE_MAX, int=CMP_NULTERM) |
| _TEST_EXPORT int | rw_fltcmp (float x, float y) |
| _TEST_EXPORT int | rw_dblcmp (double x, double y) |
| _TEST_EXPORT int | rw_ldblcmp (long double x, long double y) |
| template<class T > | |
| int | rw_equal (T x, T y) |
| int | rw_equal (float x, float y) |
| int | rw_equal (double x, double y) |
| int | rw_equal (long double x, long double y) |
| #define CMP_FP 8 /* safe floating pointing comparison */ |
Definition at line 38 of file rw_valcmp.h.
| #define CMP_NOCASE 4 /* case-insensitive character comparison */ |
Definition at line 37 of file rw_valcmp.h.
| #define CMP_NULTERM 1 /* the first 0 terminates processing */ |
valcmp.h - declarations of the rw_valcmp() family of helper functions
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 1994-2006 Rogue Wave Software.
Definition at line 35 of file rw_valcmp.h.
| #define CMP_RETOFF 2 /* return offset of the first mismatch */ |
Definition at line 36 of file rw_valcmp.h.
| _TEST_EXPORT int rw_dblcmp | ( | double | x, |
| double | y | ||
| ) |
Definition at line 753 of file valcmp.cpp.
|
inline |
Definition at line 169 of file rw_valcmp.h.
|
inline |
Definition at line 161 of file rw_valcmp.h.
|
inline |
Definition at line 179 of file rw_valcmp.h.
Compares two values of the same type for equality.
| x | The left hand side of the comparison. |
| y | The right hand side of the comparison. |
Definition at line 153 of file rw_valcmp.h.
| _TEST_EXPORT int rw_fltcmp | ( | float | x, |
| float | y | ||
| ) |
Compares two floating point numbers for equality.
| x | The left hand side of the comparison. |
| y | The right hand side of the comparison. |
Definition at line 712 of file valcmp.cpp.
| _TEST_EXPORT int rw_ldblcmp | ( | long double | x, |
| long double | y | ||
| ) |
Definition at line 816 of file valcmp.cpp.
| _TEST_EXPORT int rw_strncmp | ( | const char * | , |
| const char * | , | ||
| _RWSTD_SIZE_T | = _RWSTD_SIZE_MAX, |
||
| int | = CMP_NULTERM |
||
| ) |
| _TEST_EXPORT int rw_strncmp | ( | const char * | , |
| const wchar_t * | , | ||
| _RWSTD_SIZE_T | = _RWSTD_SIZE_MAX, |
||
| int | = CMP_NULTERM |
||
| ) |
| _TEST_EXPORT int rw_strncmp | ( | const wchar_t * | , |
| const char * | , | ||
| _RWSTD_SIZE_T | = _RWSTD_SIZE_MAX, |
||
| int | = CMP_NULTERM |
||
| ) |
| _TEST_EXPORT int rw_strncmp | ( | const wchar_t * | , |
| const wchar_t * | , | ||
| _RWSTD_SIZE_T | = _RWSTD_SIZE_MAX, |
||
| int | = CMP_NULTERM |
||
| ) |
Compares the contents of two arrays of objects of integral types, possibly of different sizes, for equality, in a strncmp/memcmp way.
| buf1 | Pointer to an array of 0 or more objects of integral type. |
| buf2 | Pointer to an array of 0 or more objects of integral type. |
| nelems | The maximum number of elements to compare. |
| flags | Bitmap of flags that determine how the objects are compared. |
Definition at line 61 of file rw_valcmp.h.
| _TEST_EXPORT int rw_valcmp | ( | const void * | , |
| const void * | , | ||
| _RWSTD_SIZE_T | , | ||
| _RWSTD_SIZE_T | , | ||
| _RWSTD_SIZE_T | , | ||
| int | |||
| ) |