831
933
m_string = m_char + m_sub;
832
934
ignore_unused_variable_warning(m_string);
936
// Named sub-expressions:
937
m_sub = m_cresults[&m_char];
938
ignore_unused_variable_warning(m_sub);
939
m_sub = m_cresults[m_string];
940
ignore_unused_variable_warning(m_sub);
941
m_sub = m_cresults[""];
942
ignore_unused_variable_warning(m_sub);
943
m_sub = m_cresults[std::string("")];
944
ignore_unused_variable_warning(m_sub);
945
m_string = m_cresults.str(&m_char);
946
ignore_unused_variable_warning(m_string);
947
m_string = m_cresults.str(m_string);
948
ignore_unused_variable_warning(m_string);
949
m_string = m_cresults.str("");
950
ignore_unused_variable_warning(m_string);
951
m_string = m_cresults.str(std::string(""));
952
ignore_unused_variable_warning(m_string);
954
typename match_results_type::difference_type diff;
955
diff = m_cresults.length(&m_char);
956
ignore_unused_variable_warning(diff);
957
diff = m_cresults.length(m_string);
958
ignore_unused_variable_warning(diff);
959
diff = m_cresults.length("");
960
ignore_unused_variable_warning(diff);
961
diff = m_cresults.length(std::string(""));
962
ignore_unused_variable_warning(diff);
963
diff = m_cresults.position(&m_char);
964
ignore_unused_variable_warning(diff);
965
diff = m_cresults.position(m_string);
966
ignore_unused_variable_warning(diff);
967
diff = m_cresults.position("");
968
ignore_unused_variable_warning(diff);
969
diff = m_cresults.position(std::string(""));
970
ignore_unused_variable_warning(diff);
834
972
#ifndef BOOST_NO_STD_LOCALE
835
973
m_stream << m_sub;
836
974
m_stream << m_cresults;
977
// Extended formatting with a functor:
979
regex_constants::match_flag_type f = regex_constants::match_default;
980
OutputIterator out = static_object<OutputIterator>::get();
982
functor3<match_results_default_type> func3;
983
functor2<match_results_default_type> func2;
984
functor1<match_results_default_type> func1;
986
functor3<match_results_type> func3b;
987
functor2<match_results_type> func2b;
988
functor1<match_results_type> func1b;
990
out = regex_format(out, m_cresults, func3b, f);
991
out = regex_format(out, m_cresults, func3b);
992
out = regex_format(out, m_cresults, func2b, f);
993
out = regex_format(out, m_cresults, func2b);
994
out = regex_format(out, m_cresults, func1b, f);
995
out = regex_format(out, m_cresults, func1b);
996
out = regex_format(out, m_cresults, boost::ref(func3b), f);
997
out = regex_format(out, m_cresults, boost::ref(func3b));
998
out = regex_format(out, m_cresults, boost::ref(func2b), f);
999
out = regex_format(out, m_cresults, boost::ref(func2b));
1000
out = regex_format(out, m_cresults, boost::ref(func1b), f);
1001
out = regex_format(out, m_cresults, boost::ref(func1b));
1002
out = regex_format(out, m_cresults, boost::cref(func3b), f);
1003
out = regex_format(out, m_cresults, boost::cref(func3b));
1004
out = regex_format(out, m_cresults, boost::cref(func2b), f);
1005
out = regex_format(out, m_cresults, boost::cref(func2b));
1006
out = regex_format(out, m_cresults, boost::cref(func1b), f);
1007
out = regex_format(out, m_cresults, boost::cref(func1b));
1009
m_string += regex_format(m_cresults, func3b, f);
1010
m_string += regex_format(m_cresults, func3b);
1011
m_string += regex_format(m_cresults, func2b, f);
1012
m_string += regex_format(m_cresults, func2b);
1013
m_string += regex_format(m_cresults, func1b, f);
1014
m_string += regex_format(m_cresults, func1b);
1015
m_string += regex_format(m_cresults, boost::ref(func3b), f);
1016
m_string += regex_format(m_cresults, boost::ref(func3b));
1017
m_string += regex_format(m_cresults, boost::ref(func2b), f);
1018
m_string += regex_format(m_cresults, boost::ref(func2b));
1019
m_string += regex_format(m_cresults, boost::ref(func1b), f);
1020
m_string += regex_format(m_cresults, boost::ref(func1b));
1021
m_string += regex_format(m_cresults, boost::cref(func3b), f);
1022
m_string += regex_format(m_cresults, boost::cref(func3b));
1023
m_string += regex_format(m_cresults, boost::cref(func2b), f);
1024
m_string += regex_format(m_cresults, boost::cref(func2b));
1025
m_string += regex_format(m_cresults, boost::cref(func1b), f);
1026
m_string += regex_format(m_cresults, boost::cref(func1b));
1028
out = m_cresults.format(out, func3b, f);
1029
out = m_cresults.format(out, func3b);
1030
out = m_cresults.format(out, func2b, f);
1031
out = m_cresults.format(out, func2b);
1032
out = m_cresults.format(out, func1b, f);
1033
out = m_cresults.format(out, func1b);
1034
out = m_cresults.format(out, boost::ref(func3b), f);
1035
out = m_cresults.format(out, boost::ref(func3b));
1036
out = m_cresults.format(out, boost::ref(func2b), f);
1037
out = m_cresults.format(out, boost::ref(func2b));
1038
out = m_cresults.format(out, boost::ref(func1b), f);
1039
out = m_cresults.format(out, boost::ref(func1b));
1040
out = m_cresults.format(out, boost::cref(func3b), f);
1041
out = m_cresults.format(out, boost::cref(func3b));
1042
out = m_cresults.format(out, boost::cref(func2b), f);
1043
out = m_cresults.format(out, boost::cref(func2b));
1044
out = m_cresults.format(out, boost::cref(func1b), f);
1045
out = m_cresults.format(out, boost::cref(func1b));
1047
m_string += m_cresults.format(func3b, f);
1048
m_string += m_cresults.format(func3b);
1049
m_string += m_cresults.format(func2b, f);
1050
m_string += m_cresults.format(func2b);
1051
m_string += m_cresults.format(func1b, f);
1052
m_string += m_cresults.format(func1b);
1053
m_string += m_cresults.format(boost::ref(func3b), f);
1054
m_string += m_cresults.format(boost::ref(func3b));
1055
m_string += m_cresults.format(boost::ref(func2b), f);
1056
m_string += m_cresults.format(boost::ref(func2b));
1057
m_string += m_cresults.format(boost::ref(func1b), f);
1058
m_string += m_cresults.format(boost::ref(func1b));
1059
m_string += m_cresults.format(boost::cref(func3b), f);
1060
m_string += m_cresults.format(boost::cref(func3b));
1061
m_string += m_cresults.format(boost::cref(func2b), f);
1062
m_string += m_cresults.format(boost::cref(func2b));
1063
m_string += m_cresults.format(boost::cref(func1b), f);
1064
m_string += m_cresults.format(boost::cref(func1b));
1066
out = regex_replace(out, m_in, m_in, ce, func3, f);
1067
out = regex_replace(out, m_in, m_in, ce, func3);
1068
out = regex_replace(out, m_in, m_in, ce, func2, f);
1069
out = regex_replace(out, m_in, m_in, ce, func2);
1070
out = regex_replace(out, m_in, m_in, ce, func1, f);
1071
out = regex_replace(out, m_in, m_in, ce, func1);
1072
out = regex_replace(out, m_in, m_in, ce, boost::ref(func3), f);
1073
out = regex_replace(out, m_in, m_in, ce, boost::ref(func3));
1074
out = regex_replace(out, m_in, m_in, ce, boost::ref(func2), f);
1075
out = regex_replace(out, m_in, m_in, ce, boost::ref(func2));
1076
out = regex_replace(out, m_in, m_in, ce, boost::ref(func1), f);
1077
out = regex_replace(out, m_in, m_in, ce, boost::ref(func1));
1078
out = regex_replace(out, m_in, m_in, ce, boost::cref(func3), f);
1079
out = regex_replace(out, m_in, m_in, ce, boost::cref(func3));
1080
out = regex_replace(out, m_in, m_in, ce, boost::cref(func2), f);
1081
out = regex_replace(out, m_in, m_in, ce, boost::cref(func2));
1082
out = regex_replace(out, m_in, m_in, ce, boost::cref(func1), f);
1083
out = regex_replace(out, m_in, m_in, ce, boost::cref(func1));
1085
functor3<match_results<typename string_type::const_iterator> > func3s;
1086
functor2<match_results<typename string_type::const_iterator> > func2s;
1087
functor1<match_results<typename string_type::const_iterator> > func1s;
1088
m_string += regex_replace(m_string, ce, func3s, f);
1089
m_string += regex_replace(m_string, ce, func3s);
1090
m_string += regex_replace(m_string, ce, func2s, f);
1091
m_string += regex_replace(m_string, ce, func2s);
1092
m_string += regex_replace(m_string, ce, func1s, f);
1093
m_string += regex_replace(m_string, ce, func1s);
1094
m_string += regex_replace(m_string, ce, boost::ref(func3s), f);
1095
m_string += regex_replace(m_string, ce, boost::ref(func3s));
1096
m_string += regex_replace(m_string, ce, boost::ref(func2s), f);
1097
m_string += regex_replace(m_string, ce, boost::ref(func2s));
1098
m_string += regex_replace(m_string, ce, boost::ref(func1s), f);
1099
m_string += regex_replace(m_string, ce, boost::ref(func1s));
1100
m_string += regex_replace(m_string, ce, boost::cref(func3s), f);
1101
m_string += regex_replace(m_string, ce, boost::cref(func3s));
1102
m_string += regex_replace(m_string, ce, boost::cref(func2s), f);
1103
m_string += regex_replace(m_string, ce, boost::cref(func2s));
1104
m_string += regex_replace(m_string, ce, boost::cref(func1s), f);
1105
m_string += regex_replace(m_string, ce, boost::cref(func1s));
840
1108
std::basic_ostream<value_type> m_stream;