Home
last modified time | relevance | path

Searched refs:const_string (Results 1 – 25 of 69) sorted by relevance

123

/third_party/boost/libs/test/doc/snippet/
Dconst_string.hpp25 class const_string class
35 const_string() : in const_string() function in common_layer::const_string
42 const_string( const std::string& s ) : in const_string() function in common_layer::const_string
47 const_string( char const* s );
49 const_string( char const* s, size_t length ) : in const_string() function in common_layer::const_string
57 const_string( char const* first, char const* last ) : in const_string() function in common_layer::const_string
77 const_string& operator=( const_string const& s );
78 const_string& operator=( string const& s ) { return *this = const_string( s ); } in operator =()
79 const_string& operator=( char const* s ) { return *this = const_string( s ); } in operator =()
81 const_string& assign( const_string const& s ) { return *this = s; } in assign()
[all …]
Dconst_string_test.cpp11 #define BOOST_TEST_MODULE const_string test
15 using common_layer::const_string;
19 const_string cs0( "" ); in BOOST_AUTO_TEST_CASE()
25 const_string cs01( NULL ); in BOOST_AUTO_TEST_CASE()
31 const_string cs1( "test_string" ); in BOOST_AUTO_TEST_CASE()
36 const_string cs2( s ); in BOOST_AUTO_TEST_CASE()
39 const_string cs3( cs1 ); in BOOST_AUTO_TEST_CASE()
42 const_string cs4( "test_string", 4 ); in BOOST_AUTO_TEST_CASE()
45 const_string cs5( s.data(), s.data() + s.length() ); in BOOST_AUTO_TEST_CASE()
48 const_string cs_array[] = { "str1", "str2" }; in BOOST_AUTO_TEST_CASE()
[all …]
Dsnippet15.cpp10 #define __BOOST_TEST_MODULE__ const_string test
15 const_string cs0( "" ); // 1 // in __BOOST_AUTO_TEST_CASE__()
19 const_string cs01( NULL ); // 2 // in __BOOST_AUTO_TEST_CASE__()
23 const_string cs1( "test_string" ); // 3 // in __BOOST_AUTO_TEST_CASE__()
28 const_string cs2( s ); in __BOOST_AUTO_TEST_CASE__()
31 const_string cs3( cs1 ); // 5 // in __BOOST_AUTO_TEST_CASE__()
34 const_string cs4( "test_string", 4 ); // 6 // in __BOOST_AUTO_TEST_CASE__()
37 const_string cs5( s.data(), s.data() + s.length() ); // 7 // in __BOOST_AUTO_TEST_CASE__()
40 const_string cs_array[] = { "str1", "str2" }; // 8 // in __BOOST_AUTO_TEST_CASE__()
Dsnippet14.cpp10 class const_string { class
13 const_string();
14 const_string( std::string const& s )
15 const_string( char const* s );
16 const_string( char const* s, size_t length );
17 const_string( char const* begin, char const* end );
/third_party/boost/libs/test/example/
Dconst_string.hpp30 class const_string { class
39 const_string() in const_string() function in common_layer::const_string
44 const_string( const std::string& s ) in const_string() function in common_layer::const_string
48 const_string( char const* s ) in const_string() function in common_layer::const_string
53 const_string( char const* s, size_t length ) in const_string() function in common_layer::const_string
56 const_string( char const* first, char const* last ) in const_string() function in common_layer::const_string
75 const_string& operator=( const_string const& s );
76 const_string& operator=( string const& s ) { return *this = const_string( s ); } in operator =()
77 const_string& operator=( char const* s ) { return *this = const_string( s ); } in operator =()
79 const_string& assign( const_string const& s ) { return *this = s; } in assign()
[all …]
Dconst_string_test.cpp15 #define BOOST_TEST_MODULE const_string test
19 using common_layer::const_string;
23 const_string cs0( "" ); in BOOST_AUTO_TEST_CASE()
29 const_string cs01( NULL ); in BOOST_AUTO_TEST_CASE()
35 const_string cs1( "test_string" ); in BOOST_AUTO_TEST_CASE()
40 const_string cs2( s ); in BOOST_AUTO_TEST_CASE()
43 const_string cs3( cs1 ); in BOOST_AUTO_TEST_CASE()
46 const_string cs4( "test_string", 4 ); in BOOST_AUTO_TEST_CASE()
49 const_string cs5( s.data(), s.data() + s.length() ); in BOOST_AUTO_TEST_CASE()
52 const_string cs_array[] = { "str1", "str2" }; in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/boost/test/tree/
Dtest_unit.hpp77 void add_label( const_string l );
78 bool has_label( const_string l ) const;
87 const_string const p_type_name; ///< "case"/"suite"/"module"
88 const_string const p_file_name;
114 test_unit( const_string tu_name, const_string tc_file, std::size_t tc_line, test_unit_type t );
116 explicit test_unit( const_string module_name );
140 test_case( const_string tc_name, boost::function<void ()> const& test_func );
141 …test_case( const_string tc_name, const_string tc_file, std::size_t tc_line, boost::function<void (…
163 explicit test_suite( const_string ts_name, const_string ts_file, std::size_t ts_line );
194 test_unit_id get( const_string tu_name ) const;
[all …]
Dtest_case_template.hpp79 …explicit generate_test_case_4_type( const_string tc_name, const_string tc_file, std::size_t tc_… in generate_test_case_4_type()
127 const_string m_test_case_name;
128 const_string m_test_case_file;
158 template_test_case_gen( const_string tc_name, const_string tc_file, std::size_t tc_line ) in template_test_case_gen()
189 template_test_case_gen( const_string tc_name, const_string tc_file, std::size_t tc_line ) in template_test_case_gen()
Ddecorator.hpp127 explicit label( const_string l ) : m_label( l ) {} in label()
135 const_string m_label;
178 explicit description( const_string descr ) : m_description( descr ) {} in description()
186 const_string m_description;
195 explicit depends_on( const_string dependency ) : m_dependency( dependency ) {} in depends_on()
203 const_string m_dependency;
/third_party/boost/boost/test/
Dexecution_monitor.hpp186 typedef boost::unit_test::const_string const_string; typedef in boost::detail::translator_holder_base
189 translator_holder_base( translator_holder_base_ptr next, const_string tag ) in translator_holder_base()
203 translator_holder_base_ptr erase( translator_holder_base_ptr this_, const_string tag ) in erase()
242 typedef boost::unit_test::const_string const_string; typedef in boost::execution_exception
274 explicit location( const_string file_name, size_t line_num = 0, char const* func = 0 );
276 const_string m_file_name; ///< File name
278 const_string m_function; ///< Function name
288 execution_exception( error_code ec, const_string what_msg, location const& location );
295 const_string what() const { return m_what; } in what()
303 const_string m_what;
[all …]
Ddebug.hpp69 unit_test::const_string binary_path; ///< path to executable for current process
70 …unit_test::const_string display; ///< if debugger has a GUI, which display to use (on U…
71 …unit_test::const_string init_done_lock; ///< path to a uniquely named lock file, which is used…
94 std::string BOOST_TEST_DECL set_debugger( unit_test::const_string dbg_id, dbg_starter s = dbg_start…
118 …_DECL detect_memory_leaks( bool on_off, unit_test::const_string report_file = unit_test::const_str…
Dunit_test_log.hpp46 begin( const_string fn, std::size_t ln ) in begin()
51 const_string m_file_name;
74 entry_value_collector const& operator<<( const_string ) const;
120 void test_unit_skipped( test_unit const&, const_string ) BOOST_OVERRIDE;
209 …void set_checkpoint( const_string file, std::size_t line_num, const_string msg = co…
215 unit_test_log_t& operator<<( const_string ); // log entry value
Dparameterized_test.hpp58 const_string tc_name, in param_test_case_generator()
59 const_string tc_file, in param_test_case_generator()
89 const_string m_tc_file;
120 const_string tc_name, in make_test_case()
121 const_string tc_file, in make_test_case()
135 const_string tc_name, in make_test_case()
136 const_string tc_file, in make_test_case()
151 const_string tc_name, in make_test_case()
152 const_string tc_file, in make_test_case()
/third_party/boost/boost/test/tools/detail/
Dfwd.hpp38 using unit_test::const_string;
89 const_string file_name, std::size_t line_num,
96 format_assertion_result( const_string expr_val, const_string details );
101 format_fpc_report( const_string expr_val, const_string details );
106 is_defined_impl( const_string symbol_name, const_string symbol_value );
/third_party/boost/libs/test/test/test-organization-ts/
Dtest-tree-management-test.cpp111 BOOST_TEST( tc1->p_type_name == const_string( "case" ) ); in BOOST_AUTO_TEST_CASE()
117 BOOST_TEST( tc1->p_name == const_string( "empty_" ) ); in BOOST_AUTO_TEST_CASE()
129 BOOST_TEST( tc2->p_name == const_string( "my test case" ) ); in BOOST_AUTO_TEST_CASE()
130 BOOST_TEST( tc2->p_file_name == const_string( "test_file_name" ) ); in BOOST_AUTO_TEST_CASE()
141 BOOST_TEST( ts1->p_type_name == const_string( "suite" ) ); in BOOST_AUTO_TEST_CASE()
144 const_string fn(ts1->p_file_name); in BOOST_AUTO_TEST_CASE()
145 const_string::size_type pos = fn.rfind( "/" ); in BOOST_AUTO_TEST_CASE()
146 if( pos != const_string::npos ) in BOOST_AUTO_TEST_CASE()
149 if( pos != const_string::npos ) in BOOST_AUTO_TEST_CASE()
151 BOOST_TEST( fn == const_string( "test-tree-management-test.cpp" ) ); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/boost/test/utils/
Dxml_printer.hpp45 print_escaped( std::ostream& where_to, const_string value ) in print_escaped()
82 print_escaped( where_to, const_string( value ) ); in print_escaped()
97 print_escaped_cdata( std::ostream& where_to, const_string value ) in print_escaped_cdata()
99 static const_string cdata_end( "]]>" ); in print_escaped_cdata()
101 const_string::size_type pos = value.find( cdata_end ); in print_escaped_cdata()
102 if( pos == const_string::npos ) in print_escaped_cdata()
130 operator<<( custom_printer<cdata> const& p, const_string value ) in operator <<()
/third_party/boost/boost/test/tools/
Doutput_test_stream.hpp38 typedef unit_test::const_string const_string; typedef in boost::test_tools::output_test_stream
49 explicit output_test_stream( const_string pattern_file_name = const_string(),
72 virtual assertion_result is_equal( const_string arg_, bool flush_stream = true );
Dassertion_result.hpp42 typedef unit_test::const_string const_string; typedef in boost::test_tools::assertion_result
76const_string message() const { return !m_message ? const_string() : const… in message()
/third_party/boost/libs/test/test/utils-ts/
Dalgorithm-test.cpp23 using utf::const_string;
53 const_string cs1( "test_string" ); in BOOST_AUTO_TEST_CASE()
54 const_string cs2( "test_stream" ); in BOOST_AUTO_TEST_CASE()
73 const_string cs( "test_string" ); in BOOST_AUTO_TEST_CASE()
74 const_string another( "tes" ); in BOOST_AUTO_TEST_CASE()
90 const_string cs( "test_string" ); in BOOST_AUTO_TEST_CASE()
91 const_string another( "tes" ); in BOOST_AUTO_TEST_CASE()
109 const_string cs( "test_string" ); in BOOST_AUTO_TEST_CASE()
110 const_string another( "string" ); in BOOST_AUTO_TEST_CASE()
/third_party/boost/boost/spirit/home/qi/string/
Dlit.hpp189 typedef typename add_const<T>::type const_string; typedef
192 , no_case_literal_string<const_string, true>
193 , literal_string<const_string, true> >::type
197 typename add_reference<const_string>::type str, unused_type) const in operator ()()
226 typedef typename add_const<A0>::type const_string; typedef
229 , no_case_literal_string<const_string, true>
230 , literal_string<const_string, true> >::type
268 typedef typename add_const<A0>::type const_string; typedef
271 , no_case_literal_string<const_string, false>
272 , literal_string<const_string, false> >::type
/third_party/boost/libs/test/doc/tutorials/
Dnew_year_resolution.qbk16 … encapsulate an unchangeable C character buffer with a length into the simple class `const_string`.
18 character buffer. I will probably want `const_string` to have an interface similar to the class std…
19 do first? In my new life I will start with writing a test module for future class `const_string`. I…
31 Well, now it could be a good time to start a work on `const_string`. First thing I imagine would be…
41 The constructors_test test case is intended to check a simple feature of the class `const_string`: …
43 constructed object as a data it contains and a length. The specification of the class `const_string
63 In the data_access_test test case I am trying to check the class `const_string` character access co…
64 (1) checks valid access using `const_string::operator[]` and test (2) checks valid access using met…
65 `const_string::at()`, there is one more thing to test. The specification of the method `const_strin…
70 [import ../snippet/const_string.hpp] [import ../snippet/const_string_test.cpp]
[all …]
/third_party/boost/boost/spirit/home/lex/lexer/
Dstring_token_def.hpp130 typedef typename add_const<T>::type const_string; typedef
131 typedef string_token_def<const_string> result_type;
134 typename add_reference<const_string>::type str, unused_type) const in operator ()()
147 typedef typename add_const<A0>::type const_string; typedef
148 typedef string_token_def<const_string, std::size_t, CharEncoding>
165 typedef typename add_const<A0>::type const_string; typedef
166 typedef string_token_def<const_string, A1, CharEncoding> result_type;
/third_party/boost/boost/test/output/
Dxml_log_formatter.hpp46 …void test_unit_skipped( std::ostream&, test_unit const& tu, const_string reason ) BOOST_OVERRID…
53 void log_entry_value( std::ostream&, const_string value ) BOOST_OVERRIDE;
57 void log_entry_context( std::ostream&, log_level, const_string ) BOOST_OVERRIDE;
62 const_string m_curr_tag;
Dcompiler_log_formatter.hpp45 …void test_unit_skipped( std::ostream&, test_unit const& tu, const_string reason ) BOOST_OVERRID…
51 void log_entry_value( std::ostream&, const_string value ) BOOST_OVERRIDE;
56 void log_entry_context( std::ostream&, log_level l, const_string ) BOOST_OVERRIDE;
60 virtual void print_prefix( std::ostream&, const_string file, std::size_t line );
/third_party/boost/boost/test/data/
Dtest_case.hpp128 test_case_gen( const_string tc_name, const_string tc_file, std::size_t tc_line, DataSet&& ds ) in test_case_gen()
146 …test_case_gen( const_string tc_name, const_string tc_file, std::size_t tc_line, DataSet const& ds )
210 const_string m_tc_file;
221 make_test_case_gen( const_string tc_name, const_string tc_file, std::size_t tc_line, DataSet&& ds ) in make_test_case_gen()
228 make_test_case_gen( const_string tc_name, const_string tc_file, std::size_t tc_line, DataSet const&… in make_test_case_gen()

123