@@ -123,7 +123,7 @@ struct comment
123
123
struct string_parts {
124
124
struct cpp_code { std::string text; };
125
125
struct raw_string { std::string text; };
126
- enum adds_sequences { no_ends = 0 , on_the_begining = 1 , on_the_end = 2 , on_both_ends = 3 };
126
+ enum adds_sequences { no_ends = 0 , on_the_beginning = 1 , on_the_end = 2 , on_both_ends = 3 };
127
127
128
128
string_parts (const std::string& beginseq,
129
129
const std::string& endseq,
@@ -132,7 +132,7 @@ struct string_parts {
132
132
, end_seq{endseq}
133
133
, strategy{strateg}
134
134
{
135
- if (!(strategy & on_the_begining )) {
135
+ if (!(strategy & on_the_beginning )) {
136
136
parts.push_back (raw_string{" " });
137
137
}
138
138
}
@@ -146,7 +146,7 @@ struct string_parts {
146
146
auto generate () const -> std::string {
147
147
148
148
if (parts.empty ()) {
149
- return (strategy & on_the_begining ? begin_seq : std::string{})
149
+ return (strategy & on_the_beginning ? begin_seq : std::string{})
150
150
+ (strategy & on_the_end ? end_seq : std::string{});
151
151
}
152
152
@@ -192,7 +192,7 @@ struct string_parts {
192
192
adds_sequences strategy;
193
193
194
194
auto operator ()(const raw_string& part) const -> std::string {
195
- return (strategy & on_the_begining ? begin_seq : " " ) + part.text ;
195
+ return (strategy & on_the_beginning ? begin_seq : " " ) + part.text ;
196
196
}
197
197
auto operator ()(const cpp_code& part) const -> std::string {
198
198
return part.text ;
0 commit comments