14#include "arccore/common/StringVector.h"
16#include "arccore/base/String.h"
18#include "arccore/common/Array.h"
19#include "arccore/common/List.h"
58 for (
Int32 i = 0; i < n; ++i)
59 m_p->m_values[i] = string_list[i];
66StringVector(
const StringVector& rhs)
69 m_p =
new Impl(*rhs.m_p);
89 Impl* new_mp =
nullptr;
91 new_mp =
new Impl(*rhs.m_p);
113 return (m_p ? m_p->m_values.size() : 0);
123 m_p->m_values.add(str);
133 return m_p->m_values[index];
147 sl.resize(nb_string);
148 for (
Int32 i = 0; i < nb_string; ++i)
#define ARCCORE_CHECK_POINTER(ptr)
Macro that returns the pointer ptr if it is not null or throws an exception if it is null.
void resize(Int64 s)
Changes the number of elements in the array to s.
Integer count() const
Number of elements in the collection.
Constant view of an array of type T.
constexpr Integer size() const noexcept
Number of elements in the array.
StringList toStringList() const
Converts the instance to 'StringList'.
void add(const String &str)
Adds str to the list of strings.
String operator[](Int32 index) const
Returns the i-th string.
Int32 size() const
Number of elements.
Unicode character string.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
List< String > StringList
Unicode string list.
std::int32_t Int32
Signed integer type of 32 bits.