Lines Matching refs:string
192 // 4774 - format string expected in argument 'x' is not a string literal
326 // internal macros for string concatenation and anonymous variable name generation
435 using string = basic_string<char, char_traits<char>, allocator<char>>;
451 // A 24 byte string class (can be as small as 17 for x64 and 13 for x86) that can hold strings with length
458 // Idea taken from this lecture about the string implementation of facebook/folly - fbstring
940 DOCTEST_INTERFACE String toString(const std::string& in);
1527 // always treat char* as a string in this context - no matter
2784 DOCTEST_MSVC_SUPPRESS_WARNING(4774) // format string expected in argument is not a string literal
2928 std::string d = oss.str();
2930 if(i != std::string::npos && i != d.size() - 1) {
2980 g_oss.str(""); // the slow way of resetting a string stream
3511 String toString(const char* in) { return String("\"") + (in ? in : "{null string}") + "\""; }
3541 String toString(const std::string& in) { return in.c_str(); }
3679 // matching of a string against a wildcard mask (case sensitivity configurable) taken from
3680 // https://www.codeproject.com/Articles/1088/Wildcard-string-compare-globbing
3717 //// C string hash function (djb2) - taken from http://www.cse.yorku.ca/~oz/hash.html
4029 } catch(std::string& msg) {
4073 for(std::string line; std::getline(in, line);) {
4184 void reportFatal(const std::string&);
4439 void reportFatal(const std::string& message) {
4606 XmlEncode( std::string const& str, ForWhat forWhat = ForTextNodes );
4613 std::string m_str;
4629 ScopedElement& writeText( std::string const& text, bool indent = true );
4632 ScopedElement& writeAttribute( std::string const& name, T const& attribute ) {
4647 XmlWriter& startElement( std::string const& name );
4649 ScopedElement scopedElement( std::string const& name );
4653 XmlWriter& writeAttribute( std::string const& name, std::string const& attribute );
4655 XmlWriter& writeAttribute( std::string const& name, const char* attribute );
4657 XmlWriter& writeAttribute( std::string const& name, bool attribute );
4660 XmlWriter& writeAttribute( std::string const& name, T const& attribute ) {
4666 XmlWriter& writeText( std::string const& text, bool indent = true );
4668 //XmlWriter& writeComment( std::string const& text );
4670 //void writeStylesheetRef( std::string const& url );
4684 std::vector<std::string> m_tags;
4685 std::string m_indent;
4734 XmlEncode::XmlEncode( std::string const& str, ForWhat forWhat )
4861 XmlWriter::ScopedElement& XmlWriter::ScopedElement::writeText( std::string const& text, bool indent ) {
4876 XmlWriter& XmlWriter::startElement( std::string const& name ) {
4886 XmlWriter::ScopedElement XmlWriter::scopedElement( std::string const& name ) {
4907 XmlWriter& XmlWriter::writeAttribute( std::string const& name, std::string const& attribute ) {
4913 XmlWriter& XmlWriter::writeAttribute( std::string const& name, const char* attribute ) {
4919 XmlWriter& XmlWriter::writeAttribute( std::string const& name, bool attribute ) {
4924 XmlWriter& XmlWriter::writeText( std::string const& text, bool indent ) {
4936 //XmlWriter& XmlWriter::writeComment( std::string const& text ) {
4943 //void XmlWriter::writeStylesheetRef( std::string const& url ) {
5074 std::string binary_name = skipPathFromFilename(opt.binary_name.c_str());
5076 if(binary_name.rfind(".exe") != std::string::npos)
5276 static std::string getCurrentTimestamp() {
5294 return std::string(timeStamp);
5299 JUnitTestMessage(const std::string& _message, const std::string& _type, const std::string& _details)
5302 JUnitTestMessage(const std::string& _message, const std::string& _details)
5305 std::string message, type, details;
5310 JUnitTestCase(const std::string& _classname, const std::string& _name)
5313 std::string classname, name;
5318 void add(const std::string& classname, const std::string& name) {
5325 testcases.back().name += std::string("/") + curr.c_str();
5335 void addFailure(const std::string& message, const std::string& type, const std::string& details) {
5340 void addError(const std::string& message, const std::string& details) {
5372 std::string binary_name = skipPathFromFilename(opt.binary_name.c_str());
5374 if(binary_name.rfind(".exe") != std::string::npos)
5650 s << "The available <int>/<string> options/filters are:\n\n";
5669 s << " -" DOCTEST_OPTIONS_PREFIX_DISPLAY "o, --" DOCTEST_OPTIONS_PREFIX_DISPLAY "out=<string> "
5671 s << " -" DOCTEST_OPTIONS_PREFIX_DISPLAY "ob, --" DOCTEST_OPTIONS_PREFIX_DISPLAY "order-by=<string> "
5673 s << Whitespace(sizePrefixDisplay*3) << " <string> - [file/suite/name/rand/none]\n";
6027 // parses an option and returns the string after the '=' character
6053 auto pch = std::strtok(filtersString.c_str(), ","); // modifies the string
6266 // allows the user to override procedurally the string options from the command line
6538 { std::cout << std::string(); };