* Checks whether the variant is scalar (i.e. not an object and not empty). * * @returns true if the variant is scalar, false otherwise. */
| 123 | * @returns true if the variant is scalar, false otherwise. |
| 124 | */ |
| 125 | bool Value::IsScalar() const |
| 126 | { |
| 127 | return !IsEmpty() && !IsObject(); |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Checks whether the variant is a number. |
no outgoing calls
no test coverage detected