| 1 | #include <cgreen/constraint.h> |
| 2 | #include <string> |
| 3 | |
| 4 | namespace cgreen { |
| 5 | |
| 6 | Constraint *create_equal_to_string_constraint(const std::string& expected_value, const char *expected_value_name) |
| 7 | { |
| 8 | return create_equal_to_string_constraint(expected_value.c_str(), expected_value_name); |
| 9 | } |
| 10 | |
| 11 | Constraint *create_equal_to_string_constraint(const std::string* expected_value, const char *expected_value_name) |
| 12 | { |
| 13 | return create_equal_to_string_constraint(expected_value->c_str(), expected_value_name); |
| 14 | } |
| 15 | |
| 16 | Constraint *create_not_equal_to_string_constraint(const std::string& expected_value, const char *expected_value_name) |
| 17 | { |
| 18 | return create_not_equal_to_string_constraint(expected_value.c_str(), expected_value_name); |
| 19 | } |
| 20 | |
| 21 | Constraint *create_not_equal_to_string_constraint(const std::string* expected_value, const char *expected_value_name) |
| 22 | { |
| 23 | return create_not_equal_to_string_constraint(expected_value->c_str(), expected_value_name); |
| 24 | } |
| 25 | |
| 26 | Constraint *create_contains_string_constraint(const std::string& expected_value, const char *expected_value_name) |
| 27 | { |
| 28 | return create_contains_string_constraint(expected_value.c_str(), expected_value_name); |
| 29 | } |
| 30 | |
| 31 | Constraint *create_contains_string_constraint(const std::string* expected_value, const char *expected_value_name) |
| 32 | { |
| 33 | return create_contains_string_constraint(expected_value->c_str(), expected_value_name); |
| 34 | } |
| 35 | |
| 36 | Constraint *create_does_not_contain_string_constraint(const std::string& expected_value, const char *expected_value_name) |
| 37 | { |
| 38 | return create_does_not_contain_string_constraint(expected_value.c_str(), expected_value_name); |
| 39 | } |
| 40 | |
| 41 | Constraint *create_does_not_contain_string_constraint(const std::string* expected_value, const char *expected_value_name) |
| 42 | { |
| 43 | return create_does_not_contain_string_constraint(expected_value->c_str(), expected_value_name); |
| 44 | } |
| 45 | |
| 46 | Constraint *create_begins_with_string_constraint(const std::string& expected_value, const char *expected_value_name) |
| 47 | { |
| 48 | return create_begins_with_string_constraint(expected_value.c_str(), expected_value_name); |
| 49 | } |
| 50 | |
| 51 | Constraint *create_begins_with_string_constraint(const std::string* expected_value, const char *expected_value_name) |
| 52 | { |
| 53 | return create_begins_with_string_constraint(expected_value->c_str(), expected_value_name); |
| 54 | } |
| 55 | |
| 56 | } |