version 1.9, 2001/06/16 23:09:59
|
version 1.12, 2002/05/16 18:25:49
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/Exception.h> |
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
@return Returns true if the given name is legal. Throws | @return Returns true if the given name is legal. Throws |
NullPointer exception if name argument is null. | NullPointer exception if name argument is null. |
*/ | */ |
static Boolean legal(const Char16* name); |
static Boolean legal(const Char16* name) throw(); |
| |
/** legal - Determine if the name string input is legal as | /** legal - Determine if the name string input is legal as |
defnined in the CIMName class definition | defnined in the CIMName class definition |
|
|
@return Returns true if the given name is legal. Throws | @return Returns true if the given name is legal. Throws |
NullPointer exception if name argument is null. | NullPointer exception if name argument is null. |
*/ | */ |
static Boolean legal(const String& name) |
static Boolean legal(const String& name) throw(); |
{ |
|
return legal(name.getData()); |
|
} |
|
| |
/** equal - Compares two names. | /** equal - Compares two names. |
@return Return true if the two names are equal. CIM names are | @return Return true if the two names are equal. CIM names are |
case insensitive and so it this method. | case insensitive and so it this method. |
*/ | */ |
static Boolean equal(const String& name1, const String& name2) |
static Boolean equal(const String& name1, const String& name2) throw(); |
{ |
|
return String::equalNoCase(name1, name2); |
|
} |
|
| |
private: | private: |
| |