Skip to content

Commit 7589240

Browse files
committed
[arcane:core] Update name of method substring() to subView()
1 parent 283bea4 commit 7589240

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arcane/src/arcane/core/internal/StringVariableReplace.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,16 @@ _splitString(StringView str_view, ArrayView<StringView> str_view_array, char c)
204204
// Si cette arrobase est précédée par un backslash.
205205
if (previous_backslash) {
206206
// On enregistre le morceau qu'on parcourait, sans le backslash.
207-
str_view_array[index++] = str_view.substring(offset, i - 1 - offset);
207+
str_view_array[index++] = str_view.subView(offset, i - 1 - offset);
208208
// On rajoute l'arrobase.
209-
str_view_array[index++] = str_view.substring(i, 1);
209+
str_view_array[index++] = str_view.subView(i, 1);
210210

211211
offset = i + 1;
212212
previous_backslash = false;
213213
}
214214
else {
215215
// On enregistre le morceau qu'on parcourait, sans l'arrobase.
216-
str_view_array[index++] = str_view.substring(offset, i - offset);
216+
str_view_array[index++] = str_view.subView(offset, i - offset);
217217

218218
offset = i + 1;
219219
}
@@ -231,7 +231,7 @@ _splitString(StringView str_view, ArrayView<StringView> str_view_array, char c)
231231
}
232232
}
233233
// On ajoute le dernier morceau.
234-
str_view_array[index] = str_view.substring(offset, len - offset);
234+
str_view_array[index] = str_view.subView(offset, len - offset);
235235
}
236236

237237
/*---------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)