Skip to content

Commit 283bea4

Browse files
committed
[arccore:base] Rename substring() method to subView()
1 parent bbed5e8 commit 283bea4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arccore/src/base/arccore/base/StringView.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ writeBytes(std::ostream& o) const
3434
/*---------------------------------------------------------------------------*/
3535

3636
StringView StringView::
37-
substring(Int64 pos) const
37+
subView(Int64 pos) const
3838
{
39-
return substring(pos, length() - pos);
39+
return subView(pos, length() - pos);
4040
}
4141

4242
/*---------------------------------------------------------------------------*/
4343
/*---------------------------------------------------------------------------*/
4444

4545
StringView StringView::
46-
substring(Int64 pos, Int64 len) const
46+
subView(Int64 pos, Int64 len) const
4747
{
4848
if (pos < 0)
4949
pos = 0;

arccore/src/base/arccore/base/StringView.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ class ARCCORE_BASE_EXPORT StringView
184184
void writeBytes(std::ostream& o) const;
185185

186186
//! Sous-chaîne commençant à la position \a pos
187-
StringView substring(Int64 pos) const;
187+
StringView subView(Int64 pos) const;
188188

189189
//! Sous-chaîne commençant à la position \a pos et de longueur \a len
190-
StringView substring(Int64 pos,Int64 len) const;
190+
StringView subView(Int64 pos,Int64 len) const;
191191

192192
private:
193193

0 commit comments

Comments
 (0)