pichar and pistring explicit test
This commit is contained in:
@@ -59,7 +59,7 @@ public:
|
||||
|
||||
//! \~english Contructs symbol from system locale and no more than 4 bytes of string
|
||||
//! \~russian Создает символ из системной локали не более 4 байт длины
|
||||
PIChar(const char * c, int * bytes = 0);
|
||||
explicit PIChar(const char * c, int * bytes = 0);
|
||||
|
||||
//! \~english Copy operator
|
||||
//! \~russian Оператор присваивания
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
bool operator!=(const PIChar & o) const { return !(o == *this); }
|
||||
bool operator!=(const PIChar & o) const { return !(*this == o); }
|
||||
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
@@ -265,36 +265,36 @@ inline bool operator<=(const char * v, const PIChar & c) {
|
||||
//! \relatesalso PIChar
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
inline bool operator==(const int v, const PIChar & c) {
|
||||
return (PIChar((ushort)v) == c);
|
||||
inline bool operator==(ushort v, const PIChar & c) {
|
||||
return (PIChar(v) == c);
|
||||
}
|
||||
|
||||
//! \relatesalso PIChar
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
inline bool operator>(const int v, const PIChar & c) {
|
||||
return (PIChar((ushort)v) > c);
|
||||
inline bool operator>(ushort v, const PIChar & c) {
|
||||
return (PIChar(v) > c);
|
||||
}
|
||||
|
||||
//! \relatesalso PIChar
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
inline bool operator<(const int v, const PIChar & c) {
|
||||
return (PIChar((ushort)v) < c);
|
||||
inline bool operator<(ushort v, const PIChar & c) {
|
||||
return (PIChar(v) < c);
|
||||
}
|
||||
|
||||
//! \relatesalso PIChar
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
inline bool operator>=(const int v, const PIChar & c) {
|
||||
return (PIChar((ushort)v) >= c);
|
||||
inline bool operator>=(ushort v, const PIChar & c) {
|
||||
return (PIChar(v) >= c);
|
||||
}
|
||||
|
||||
//! \relatesalso PIChar
|
||||
//! \~english Compare operator
|
||||
//! \~russian Оператор сравнения
|
||||
inline bool operator<=(const int v, const PIChar & c) {
|
||||
return (PIChar((ushort)v) <= c);
|
||||
inline bool operator<=(ushort v, const PIChar & c) {
|
||||
return (PIChar(v) <= c);
|
||||
}
|
||||
|
||||
#endif // PICHAR_H
|
||||
|
||||
Reference in New Issue
Block a user