MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Format

Method Format

cpp/iedriver/StringUtilities.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121std::string StringUtilities::Format(const char* format, ...) {
122 va_list args;
123 va_start(args, format);
124 size_t buffer_size = _vscprintf(format, args);
125 std::vector<char> buffer(buffer_size + 1);
126 _vsnprintf_s(&buffer[0], buffer.size(), buffer_size + 1, format, args);
127 va_end(args);
128 std::string formatted = &buffer[0];
129 return formatted;
130}
131
132std::wstring StringUtilities::Format(const wchar_t* format, ...) {
133 va_list args;

Calls 1

sizeMethod · 0.45