Klasa do wygodnego składania stringów z różnych informacji. More...
#include <Base.hpp>
Public Member Functions | |
| Format (const tstring &Fmt, char Sep= '#') | |
| Format (const Format &f, const tstring &Element) | |
| Dodaje kolejną informację do formatowanego łańcucha. | |
| Format (const Format &f, const tchar *Element) | |
| operator tstring () const | |
| tstring | str () const |
| Zwraca finalny string - stosować tam, gdzie nie zadziała automatyczne rzutowanie na string. | |
Klasa do wygodnego składania stringów z różnych informacji.
Przykład użycia:
int i = 10; float f = 3.14f; tstring s = _T("A"); string MyString = Format("i=#, f=#, s=#") % i % f % s;
| common::Format::Format | ( | const tstring & | Fmt, | |
| char | Sep = '#' | |||
| ) | [inline] |
Dodaje kolejną informację do formatowanego łańcucha.
| common::Format::operator tstring | ( | ) | const [inline] |
| tstring common::Format::str | ( | ) | const [inline] |
Zwraca finalny string - stosować tam, gdzie nie zadziała automatyczne rzutowanie na string.
1.6.1