|
|
| version 1.239, 2026/01/06 13:27:59 | version 1.241, 2026/04/25 13:38:46 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: string class decl. | Parser: string class decl. |
| Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) |
| Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| Line 695 public: | Line 695 public: |
| const String& trim(Trim_kind kind=TRIM_BOTH, const char* chars=0, Charset* source_charset=0) const; | const String& trim(Trim_kind kind=TRIM_BOTH, const char* chars=0, Charset* source_charset=0) const; |
| double as_double() const { return pa_atod(cstr(), this); } | double as_double() const { return pa_atod(cstr(), this); } |
| int as_int() const { return pa_atoi(cstr(), 0, this); } | int as_int() const { return pa_atoi(cstr(), 0, this); } |
| bool as_bool() const { return as_int()!=0; } | pa_wint as_wint() const { return pa_atowi(cstr(), 0, this); } |
| bool as_bool() const { return as_wint()!=0; } | |
| const String& escape(Charset& source_charset) const; | const String& escape(Charset& source_charset) const; |
| private: //disabled | private: //disabled |