DEENESPTFRRUARHIKOZHNL

class ara::core::StringView

[SWS_CORE_02001]

class StringView {...};

Implementation of std::basic_string_view type from [string.view]

Header-Datei#include "ara/core/string_view.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

User GuideAI-GENERATED

Provides an efficient, non-owning read view of contiguous character sequences without memory allocation.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7c1acb6c9194 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Provides an efficient, non-owning read view of contiguous character sequences without memory allocation.

ara::core::StringView provides a non-owning, read-only view of contiguous character sequences of type char ([SWS_CORE_02100]). It allows efficient text checks, searches, and substring generations without dynamic memory allocation ([SWS_CORE_02141]). All functions are declared noexcept; range violations trigger an IsoStdOutOfRangeViolation or, in the case of unprotected accesses, undefined behavior.

Context

The class ara::core::StringView provides an implementation of the standard type std::basic_string_view from [string.view] in the AUTOSAR Adaptive Platform. According to [SWS_CORE_02100], it is fixedly specialized for the character type char (value_type = char). As a constant, non-owning reference, it encapsulates contiguous character storage via a pointer ([SWS_CORE_02102]) and a length specification ([SWS_CORE_02109]). The class primarily serves as an efficient parameter for interfaces to transmit and inspect text data in a read-only manner without dynamic memory allocations or copy operations.

For read access, the class defines standard-compliant alias types such as const_pointer ([SWS_CORE_02102]), const_reference ([SWS_CORE_02104]), difference_type ([SWS_CORE_02110]) as well as bidirectional iterators (iterator, const_iterator according to [SWS_CORE_02105] and [SWS_CORE_02106] as well as reverse iterators according to [SWS_CORE_02107] and [SWS_CORE_02108]). Invalid positions are signaled via the static constant npos ([SWS_CORE_02111]).

Lifecycle

Instances of ara::core::StringView can be created as empty views ([SWS_CORE_02112]), from null-terminated C strings ([SWS_CORE_02113]), or from a pointer with an explicit length specification ([SWS_CORE_02114]). All constructors are declared as constexpr and noexcept. The lifecycle of the view is strictly decoupled from that of the underlying memory: StringView assumes no ownership of the data. The destructor is recorded as a defaulted operation ([SWS_CORE_02119]) and does not release the memory.

The copy constructor ([SWS_CORE_02115]) and assignment operator ([SWS_CORE_02116]) are defined as default. In addition to the C++17 standard, AUTOSAR explicitly also specifies the move constructor ([SWS_CORE_02117]) and move assignment ([SWS_CORE_02118]) as noexcept = default. Two views can be swapped efficiently via swap() ([SWS_CORE_02139]). With regard to concurrency, read access to the same instance from multiple threads is likely to be thread-safe because all read operations are const; modifying calls, on the other hand, require external synchronization. Question Q-6369ee16a0db48ee (open)

Usage Path

A typical workflow includes instantiation, validation, pattern searching, and extraction of subranges:

Inspection and substring creation with ara::core::StringViewApplicationquellView: StringViewsubView: StringViewStringView(str, len)Instanz erzeugtstarts_with(prefix)true / falsefind(delimiter, pos)Fundpositionsubstr(pos, count)Erzeugung TeilansichtsubView Instanzempty()false

Sequence diagram: Typical call sequence for inspection and substring generation without memory allocation. Sources: [SWS_CORE_02114], [SWS_CORE_02148], [SWS_CORE_02158], [SWS_CORE_02141], [SWS_CORE_02131]

Error Scenarios

All functions of the class are declared as noexcept. Deviations from the ISO C++ standard concern the handling of range violations: instead of throwing exceptions of type std::out_of_range, an IsoStdOutOfRangeViolation is triggered upon position overruns. This applies to:

Some functions have preconditions whose violation leads to undefined behavior: The index operator operator[](pos) does not check bounds and leads to undefined behavior if pos >= size() ([SWS_CORE_02132]). Likewise, calling front() ([SWS_CORE_02134]) or back() ([SWS_CORE_02135]) on empty instances (empty() == true) leads to undefined behavior. If more characters are removed with remove_prefix(n) ([SWS_CORE_02137]) or remove_suffix(n) ([SWS_CORE_02138]) than the view contains (n > size()), the behavior is also undefined. In addition, an StringView surviving past the end of the lifetime of the referenced character storage leads to dangling pointers; the class presumably does not perform any runtime check of pointer validity. Question Q-410a994677a85c8c (open)

This text was created and curated by an AI. All statements are substantiated by the AUTOSAR specification R25-11.

Member map

Class diagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__StringView801 StringView + npos + StringView() + operator=() + ~StringView() + empty() + length() + max_size() + size() + at() + back() + data() + front() + operator[]() + remove_prefix() + remove_suffix() + swap() + begin() … 19 weitere

Detail view

Select an entry in the outline.

Constructors and destructor

StringView function 5

≙ [string.view]

Overloads StringView 5
constexpr StringView () noexcept; SWS_CORE_02112
constexpr StringView (const char *str) noexcept; SWS_CORE_02113
constexpr StringView (const char *str, size_type len) noexcept; SWS_CORE_02114
constexpr StringView (const StringView &other) noexcept=default; SWS_CORE_02115
constexpr StringView (StringView &&other) noexcept=default; SWS_CORE_02117
~StringView function

[AUTOSAR defined] not present in ISO-14882. Destructor

~StringView () noexcept=default;

Methods

at function

except for the following deviations: 1. The function is noexcept 2. if (pos >= size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [string.view]

constexpr const_reference at (size_type pos) const noexcept;
back function

except for the following deviations: 1. The function is noexcept ≙ [string.view]

constexpr const_reference back () const noexcept;
begin function

≙ [string.view]

constexpr const_iterator begin () const noexcept;
cbegin function

≙ [string.view]

constexpr const_iterator cbegin () const noexcept;
cend function

≙ [string.view]

constexpr const_iterator cend () const noexcept;
compare function 6

≙ [string.view]

Overloads compare 6
constexpr int compare (StringView s) const noexcept; SWS_CORE_02142
constexpr int compare (size_type pos1, size_type n1, StringView s) const noexcept; SWS_CORE_02143
constexpr int compare (size_type pos1, size_type n1, StringView s, size_type pos2, size_type n2) const noexcept; SWS_CORE_02144
constexpr int compare (const char *s) const noexcept; SWS_CORE_02145
constexpr int compare (size_type pos1, size_type n1, const char *s) const noexcept; SWS_CORE_02146
constexpr int compare (size_type pos1, size_type n1, const char *s, size_type n2) const noexcept; SWS_CORE_02147
contains function 3

in [16] ≙ [string.view]

Overloads contains 3
constexpr bool contains (StringView sv) const noexcept; SWS_CORE_02154
constexpr bool contains (char c) const noexcept; SWS_CORE_02155
constexpr bool contains (const char *str) const noexcept; SWS_CORE_02156
copy function

except for the following deviations: 1. The function is noexcept 2. if (pos > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [string.view]

size_type copy (char *s, size_type n, size_type pos=0) const noexcept;
crbegin function

≙ [string.view]

constexpr const_reverse_iterator crbegin () const noexcept;
crend function

≙ [string.view]

constexpr const_reverse_iterator crend () const noexcept;
data function

≙ [string.view]

constexpr const_pointer data () const noexcept;
empty function

≙ [string.view]

[[nodiscard]] constexpr bool empty () const noexcept;
end function

≙ [string.view]

constexpr const_iterator end () const noexcept;
ends_with function 3

in [15] ≙ [string.view]

Overloads ends_with 3
constexpr bool ends_with (StringView sv) const noexcept; SWS_CORE_02151
constexpr bool ends_with (char c) const noexcept; SWS_CORE_02152
constexpr bool ends_with (const char *str) const noexcept; SWS_CORE_02153
find function 4

≙ [string.view]

Overloads find 4
constexpr size_type find (StringView s, size_type pos=0) const noexcept; SWS_CORE_02157
constexpr size_type find (char c, size_type pos=0) const noexcept; SWS_CORE_02158
constexpr size_type find (const char *s, size_type pos, size_type n) const noexcept; SWS_CORE_02159
constexpr size_type find (const char *s, size_type pos=0) const noexcept; SWS_CORE_02160

≙ [string.view]

Overloads find_first_not_of 4
constexpr size_type find_first_not_of (StringView s, size_type pos=0) const noexcept; SWS_CORE_02173
constexpr size_type find_first_not_of (char c, size_type pos=0) const noexcept; SWS_CORE_02174
constexpr size_type find_first_not_of (const char *s, size_type pos, size_type n) const noexcept; SWS_CORE_02175
constexpr size_type find_first_not_of (const char *s, size_type pos=0) const noexcept; SWS_CORE_02176
find_first_of function 4

≙ [string.view]

Overloads find_first_of 4
constexpr size_type find_first_of (StringView s, size_type pos=0) const noexcept; SWS_CORE_02165
constexpr size_type find_first_of (char c, size_type pos=0) const noexcept; SWS_CORE_02166
constexpr size_type find_first_of (const char *s, size_type pos, size_type n) const noexcept; SWS_CORE_02167
constexpr size_type find_first_of (const char *s, size_type pos=0) const noexcept; SWS_CORE_02168
find_last_not_of function 4

≙ [string.view]

Overloads find_last_not_of 4
constexpr size_type find_last_not_of (StringView s, size_type pos=0) const noexcept; SWS_CORE_02177
constexpr size_type find_last_not_of (char c, size_type pos=0) const noexcept; SWS_CORE_02178
constexpr size_type find_last_not_of (const char *s, size_type pos, size_type n) const noexcept; SWS_CORE_02179
constexpr size_type find_last_not_of (const char *s, size_type pos=0) const noexcept; SWS_CORE_02180
find_last_of function 4

≙ [string.view]

Overloads find_last_of 4
constexpr size_type find_last_of (StringView s, size_type pos=0) const noexcept; SWS_CORE_02169
constexpr size_type find_last_of (char c, size_type pos=0) const noexcept; SWS_CORE_02170
constexpr size_type find_last_of (const char *s, size_type pos, size_type n) const noexcept; SWS_CORE_02171
constexpr size_type find_last_of (const char *s, size_type pos=0) const noexcept; SWS_CORE_02172
front function

except for the following deviations: 1. The function is noexcept ≙ [string.view]

constexpr const_reference front () const noexcept;
length function

≙ [string.view]

constexpr size_type length () const noexcept;
max_size function

≙ [string.view]

constexpr size_type max_size () const noexcept;
rbegin function

≙ [string.view]

constexpr const_reverse_iterator rbegin () const noexcept;
remove_prefix function

except for the following deviations: 1. The function is noexcept ≙ [string.view]

constexpr void remove_prefix (size_type n) noexcept;
remove_suffix function

except for the following deviations: 1. The function is noexcept ≙ [string.view]

constexpr void remove_suffix (size_type n) noexcept;
rend function

≙ [string.view]

constexpr const_reverse_iterator rend () const noexcept;
rfind function 4

≙ [string.view]

Overloads rfind 4
constexpr size_type rfind (StringView s, size_type pos=0) const noexcept; SWS_CORE_02161
constexpr size_type rfind (char c, size_type pos=0) const noexcept; SWS_CORE_02162
constexpr size_type rfind (const char *s, size_type pos, size_type n) const noexcept; SWS_CORE_02163
constexpr size_type rfind (const char *s, size_type pos=0) const noexcept; SWS_CORE_02164
size function

≙ [string.view]

constexpr size_type size () const noexcept;
starts_with function 3

in [15] ≙ [string.view]

Overloads starts_with 3
constexpr bool starts_with (StringView sv) const noexcept; SWS_CORE_02148
constexpr bool starts_with (char c) const noexcept; SWS_CORE_02149
constexpr bool starts_with (const char *str) const noexcept; SWS_CORE_02150
substr function

except for the following deviations: 1. if (pos > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [string.view]

constexpr StringView substr (size_type pos=0, size_type n=npos) const noexcept;
swap function

except for the following deviations: 1. The function is noexcept ≙ [string.view]

constexpr void swap (StringView &other) noexcept;

Operators

operator= function 2

≙ [string.view]

Overloads = 2
constexpr StringView & operator= (const StringView &other) noexcept=default; SWS_CORE_02116
constexpr StringView & operator= (StringView &&other) noexcept=default; SWS_CORE_02118
operator[] function

except for the following deviations: 1. The function is noexcept ≙ [string.view]

constexpr const_reference operator[] (size_type pos) const noexcept;

Type aliases

const_iterator type alias

Implementation {<const-iterator-type>} shall be an implementation-defined type ≙ [string.view]

using const_iterator = {<const-iterator-type>};
const_pointer type alias

except for the following deviations: 1. Pointer type shall be specialized to value_type ≙ [string.view]

using const_pointer = const value_type*;
const_reference type alias

except for the following deviations: 1. Reference type shall be specialized to value_type ≙ [string.view]

using const_reference = const value_type&;

≙ [string.view]

using const_reverse_iterator = std::reverse_iterator<const_iterator>;
difference_type type alias

≙ [string.view]

using difference_type = std::ptrdiff_t;
iterator type alias

≙ [string.view]

using iterator = const_iterator;
pointer type alias

except for the following deviations: 1. Pointer type shall be specialized to value_type ≙ [string.view]

using pointer = value_type*;
reference type alias

except for the following deviations: 1. Reference type shall be specialized to value_type ≙ [string.view]

reverse_iterator type alias

≙ [string.view]

using reverse_iterator = const_reverse_iterator;
size_type type alias

≙ [string.view]

using size_type = std::size_t;
value_type type alias

except for the following deviations: 1. Type shall be specialized to char ≙ [string.view]

using value_type = char;

Constants

npos variable

≙ [string.view]

static constexpr size_type npos = size_type(-1);

Method documentation

function StringView [SWS_CORE_02112]

constexpr StringView () noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02112@rel:R25-11#7e833772
Content hash
7e833772
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02112
Status: valid/unmigrated Version: rel:R25-11#29731701 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02112@rel:R25-11#29731701
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7e8337722026-09-30
  • R24-11rel:R24-11#a5e815a42026-10-14
  • R25-11rel:R25-11#297317012026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function StringView [SWS_CORE_02113]

constexpr StringView (const char *str) noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02113
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02113@rel:R25-11#5f57f19f
Content hash
5f57f19f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02113
Status: valid/unmigrated Version: rel:R25-11#392102c3 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02113@rel:R25-11#392102c3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5f57f19f2026-09-30
  • R24-11rel:R24-11#4a8943842026-10-14
  • R25-11rel:R25-11#392102c32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function StringView [SWS_CORE_02114]

constexpr StringView (const char *str, size_type len) noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02114
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02114@rel:R25-11#d2a43768
Content hash
d2a43768
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02114
Status: valid/unmigrated Version: rel:R25-11#b47962c1 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02114@rel:R25-11#b47962c1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d2a437682026-09-30
  • R24-11rel:R24-11#5858bb262026-10-14
  • R25-11rel:R25-11#b47962c12026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function StringView [SWS_CORE_02115] Upstream: RS_AP_00145

constexpr StringView (const StringView &other) noexcept=default;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02115@rel:R25-11#46185d3d
Content hash
46185d3d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02115
Status: valid/unmigrated Version: rel:R25-11#5b99b5c4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02115@rel:R25-11#5b99b5c4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#46185d3d2026-09-30
  • R24-11rel:R24-11#2443f5be2026-10-14
  • R25-11rel:R25-11#5b99b5c42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function StringView [SWS_CORE_02117] Upstream: RS_AP_00145

constexpr StringView (StringView &&other) noexcept=default;

[AUTOSAR defined] not present in ISO-14882. Move constructor

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02117
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02117@rel:R25-11#b40da38f
Content hash
b40da38f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02117
Status: valid/unmigrated Version: rel:R25-11#2b631c63 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02117@rel:R25-11#2b631c63
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b40da38f2026-09-30
  • R24-11rel:R24-11#1f028f832026-10-14
  • R25-11rel:R25-11#2b631c632026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function at [SWS_CORE_02133]

constexpr const_reference at (size_type pos) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept 2. if (pos >= size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b7697f8c19b0 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function at of class ara::core::StringView provides synchronous read access to individual characters ([SWS_CORE_02133]). It accepts as parameter the index pos of type size_type and returns a const reference (const_reference) to the character at this position. The function is specified as constexpr and noexcept, which also allows calls to be evaluated at compile time.

Error handling

Contrary to the behavior in standard [string.view], the function does not throw an exception of type std::out_of_range in case of error ([SWS_CORE_02133]). If condition pos >= size() is fulfilled, a IsoStdOutOfRangeViolation is triggered instead. The specification classifies the function as exception safe (exception safe).

Concurrency and Limitations

Since at is declared as const, the call does not modify the underlying instance. The caller must ensure that the referenced string remains valid for the entire lifetime of the StringView object. When out-of-bounds violation IsoStdOutOfRangeViolation occurs, execution is likely terminated in a controlled manner; user-defined abort routines can be registered for this via AddAbortHandler ([SWS_CORE_00054]) (Interpretation). Question Q-0836f4dc6fa946a6 (open)

Interaction

The concept of intercepting out-of-bounds accesses via IsoStdOutOfRangeViolation is applied consistently across multiple containers in ara::core:

This text was generated by an AI system and is based exclusively on specification data from release R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02133
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02133@rel:R25-11#c71b9b61
Content hash
c71b9b61
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02133
Status: valid/unmigrated Version: rel:R25-11#aedaf2b6 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02133@rel:R25-11#aedaf2b6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c71b9b612026-09-30
  • R24-11rel:R24-11#f9ae77482026-10-14
  • R25-11rel:R25-11#aedaf2b62026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function back [SWS_CORE_02135]

constexpr const_reference back () const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Undefiniertes VerhaltenThe behavior of this function is undefined if: (empty() == true)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02135
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02135@rel:R25-11#792c8baf
Content hash
792c8baf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02135
Status: valid/unmigrated Version: rel:R25-11#dd32793c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02135@rel:R25-11#dd32793c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#792c8baf2026-09-30
  • R24-11rel:R24-11#c14fc9562026-10-14
  • R25-11rel:R25-11#dd32793c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function begin [SWS_CORE_02120]

constexpr const_iterator begin () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02120
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02120@rel:R25-11#29eccef0
Content hash
29eccef0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02120
Status: valid/unmigrated Version: rel:R25-11#0ce78cee Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02120@rel:R25-11#0ce78cee
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#29eccef02026-09-30
  • R24-11rel:R24-11#dabfe6c52026-10-14
  • R25-11rel:R25-11#0ce78cee2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function cbegin [SWS_CORE_02122]

constexpr const_iterator cbegin () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02122@rel:R25-11#638e7266
Content hash
638e7266
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02122
Status: valid/unmigrated Version: rel:R25-11#ce988608 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02122@rel:R25-11#ce988608
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#638e72662026-09-30
  • R24-11rel:R24-11#0801a6bf2026-10-14
  • R25-11rel:R25-11#ce9886082026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function cend [SWS_CORE_02123]

constexpr const_iterator cend () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02123@rel:R25-11#40108232
Content hash
40108232
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02123
Status: valid/unmigrated Version: rel:R25-11#7b20c95a Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02123@rel:R25-11#7b20c95a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#401082322026-09-30
  • R24-11rel:R24-11#b02b23952026-10-14
  • R25-11rel:R25-11#7b20c95a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function compare [SWS_CORE_02142]

constexpr int compare (StringView s) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2927f57a7caa Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function compare of class ara::core::StringView from header #include "ara/core/string_view.h" serves for the synchronous lexicographical comparison of the current string view with a passed instance s of type StringView [SWS_CORE_02142]. The behavior is based on the corresponding usage in [string.view] of the C++ standard [SWS_CORE_02142]. As a return value, the function provides an int, which represents the relational relationship of the character sequences [SWS_CORE_02142].

Error handling

The function is declared with noexcept and specified as exception safe [SWS_CORE_02142]. It does not throw C++ exceptions. Specific error codes, AUTOSAR development errors (DET), or notifications to the Diagnostic Event Manager (DEM) are not provided for this operation [SWS_CORE_02142].

Concurrency and Constraints

Due to the classification as const and constexpr, the call can already be evaluated at compile time [SWS_CORE_02142]. Interpretation: Since the function accesses immutable character sequences in a read-only manner, a concurrent call via the same StringView from multiple threads is expected to be thread-safe, provided that the underlying character data is not modified. Question Q-7489abeeb3fd7124 (open)

Interaction

While basic types in ara::core such as ErrorDomain [SWS_CORE_00137] or ErrorCode [SWS_CORE_00571] primarily provide binary equality operators for checks, compare in StringView offers a three-way comparison value [SWS_CORE_02142].

This usage note was created automatically based on the AUTOSAR Adaptive specification R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02142
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02142@rel:R25-11#f35caa91
Content hash
f35caa91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02142
Status: valid/unmigrated Version: rel:R25-11#13dc427e Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02142@rel:R25-11#13dc427e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f35caa912026-09-30
  • R24-11rel:R24-11#29da57632026-10-14
  • R25-11rel:R25-11#13dc427e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function compare [SWS_CORE_02143]

constexpr int compare (size_type pos1, size_type n1, StringView s) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept 2. if (pos1 > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5252e249a5c2 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function compare of class ara::core::StringView performs a synchronous lexicographical comparison of a substring of the current string view with a passed StringView s [SWS_CORE_02143]. The substring to be compared begins at index pos1 and encompasses a length of at most n1 characters. The return value is an integer int indicating the relational result. Since the function is declared as constexpr, evaluation can already take place at compile time [SWS_CORE_02143].

Error handling

The semantics are based on the requirements of [string.view] from the ISO C++ standard, but define two major deviations [SWS_CORE_02143]:

  • The function is specified with noexcept and is considered exception safe (exception safe) [SWS_CORE_02143].
  • If the start index exceeds the length of the view (pos1 > size()), no standard exception of type std::out_of_range is thrown, but a IsoStdOutOfRangeViolation is caused [SWS_CORE_02143].

Concurrency and Constraints

Callers must ensure in advance that pos1 does not exceed the value of size() in order to avoid a IsoStdOutOfRangeViolation [SWS_CORE_02143]. Since compare is declared as const and performs no modifications to the instance, concurrent read access from multiple threads is expected to be non-critical (interpretation). Question Q-be4ec80ab2529ed3 (open)

This usage note was generated automatically based on the specification of AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02143
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02143@rel:R25-11#ebee01fe
Content hash
ebee01fe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02143
Status: valid/unmigrated Version: rel:R25-11#954b8eb6 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02143@rel:R25-11#954b8eb6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ebee01fe2026-09-30
  • R24-11rel:R24-11#d94c460b2026-10-14
  • R25-11rel:R25-11#954b8eb62026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function compare [SWS_CORE_02144]

constexpr int compare (size_type pos1, size_type n1, StringView s, size_type pos2, size_type n2) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept 2. if (pos1 > size() || pos2 > s.size() ) IsoStdOutOfRangeViolation is raised instead of std::out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 84981befbff9 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function compare of class ara::core::StringView ([SWS_CORE_02144], header file #include "ara/core/string_view.h") serves for the synchronous, lexicographical comparison of two substrings. The fundamental behavior corresponds to the functionality in [string.view] of the ISO C++ standard, but exhibits specific deviations for AUTOSAR Adaptive [SWS_CORE_02144].

The passed parameters determine the sections of both sequences to be compared [SWS_CORE_02144]:

  • pos1 and n1: Start index and maximum character count within the calling instance.
  • s: The object of type StringView to be compared.
  • pos2 and n2: Start index and maximum character count within the passed object s.

As a return value, the function delivers an integer value (int) that is negative if the own subsequence is lexicographically smaller, zero upon match, and positive if it is greater [SWS_CORE_02144].

Regarding error handling, the implementation deviates from the standard: The method is declared as noexcept and is considered exception safe (exception safe) [SWS_CORE_02144]. If one of the start positions lies outside the valid range (pos1 > size() || pos2 > s.size()), no std::out_of_range exception is thrown, but a IsoStdOutOfRangeViolation is raised [SWS_CORE_02144].

Due to the qualifiers constexpr and const, the function can already be evaluated during compilation [SWS_CORE_02144]. Since no internal states are modified, concurrent read accesses to the same instance are expected to be thread-safe. Question Q-a93f872ee88becc9 (open)

This text was created by an AI and serves as supplementary documentation to the AUTOSAR specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02144
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02144@rel:R25-11#e0aad7e4
Content hash
e0aad7e4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02144
Status: valid/unmigrated Version: rel:R25-11#ff6c2d48 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02144@rel:R25-11#ff6c2d48
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e0aad7e42026-09-30
  • R24-11rel:R24-11#d74c38742026-10-14
  • R25-11rel:R25-11#ff6c2d482026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function compare [SWS_CORE_02145]

constexpr int compare (const char *s) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 280fbff67867 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function compare of class ara::core::StringView (header file #include "ara/core/string_view.h") serves the synchronous, lexicographical comparison of the current string view with a null-terminated C string const char* s [SWS_CORE_02145]. Since the operation is specified as constexpr, evaluation can take place both at runtime and within the context of compile-time expressions. As a return value, the function returns an integer value of type int whose sign reflects the comparison result analogously to [string.view]: a value less than zero means that the instance precedes s lexicographically; the value zero means equality; a value greater than zero indicates that the instance succeeds s [SWS_CORE_02145].

Regarding error handling, the AUTOSAR specification explicitly deviates from the template in [string.view]: The method is declared as noexcept and has the property exception safe [SWS_CORE_02145]. Calls are thus guaranteed not to throw C++ exceptions. Specific error codes, feedback to the Development Error Tracer (DET) or the Diagnostic Event Manager (DEM) are not provided for this basic function.

As a const-qualified method, compare does not modify the state of the ara::core::StringView instance and can be called safely for concurrent reading. When using it, it should be noted that the pointer s presumably must refer to a valid character sequence, since the semantics adopted from [string.view] would likely result in undefined behavior if a null pointer is passed [SWS_CORE_02145]. Question Q-cff1a1f55603dbd4 (open)

This text was generated by an AI based on the AUTOSAR Adaptive R25-11 specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02145
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02145@rel:R25-11#8693ac30
Content hash
8693ac30
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02145
Status: valid/unmigrated Version: rel:R25-11#86d16827 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02145@rel:R25-11#86d16827
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#8693ac302026-09-30
  • R24-11rel:R24-11#1ceaca1a2026-10-14
  • R25-11rel:R25-11#86d168272026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function compare [SWS_CORE_02146]

constexpr int compare (size_type pos1, size_type n1, const char *s) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept 2. if (pos1 > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c774270160f9 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The method compare of class ara::core::StringView enables a synchronous lexicographical comparison of a substring of the string view with a null-terminated C string s [SWS_CORE_02146]. Passed are the start index pos1, the maximum length n1, and the pointer s to the character sequence to be compared. The return value of type int reflects the relational ordering result analogously to the standard library: a return value less than zero, equal to zero, or greater than zero characterizes the lexicographical relationship [SWS_CORE_02146].

Error Handling and Boundary Conditions

The operation is specified as noexcept and \"exception safe\" [SWS_CORE_02146]. In contrast to the behavior according to C++ standard [string.view], an invalid start index with pos1 > size() does not trigger a std::out_of_range exception, but leads to a IsoStdOutOfRangeViolation [SWS_CORE_02146]. In the AUTOSAR runtime context, this violation is expected to be treated as a programming error and force an immediate platform abort, since regular C++ exceptions cannot escape across noexcept boundaries. Question Q-d4ce6b496b80fdde (open) Furthermore, it must be ensured that s refers to a valid string, since a null pointer presumably causes undefined behavior.

Concurrency

Since compare is defined as const and constexpr, the state of the instance remains unchanged [SWS_CORE_02146]. Concurrent read accesses to the same ara::core::StringView object can thus be executed safely.

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02146
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02146@rel:R25-11#af7ea1bc
Content hash
af7ea1bc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02146
Status: valid/unmigrated Version: rel:R25-11#1ef7ff3c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02146@rel:R25-11#1ef7ff3c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#af7ea1bc2026-09-30
  • R24-11rel:R24-11#988d6d132026-10-14
  • R25-11rel:R25-11#1ef7ff3c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function compare [SWS_CORE_02147]

constexpr int compare (size_type pos1, size_type n1, const char *s, size_type n2) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept 2. if (pos1 > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1cc4e349e5f4 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function compare of class ara::core::StringView from header ara/core/string_view.h performs a synchronous lexicographical comparison [SWS_CORE_02147]. In this process, a subsequence of the current instance, starting from index pos1 with a maximum of n1 characters, is compared with the first n2 characters of the external C character array s. The integer return value (int) follows the semantics of [string.view] and indicates via its sign whether the own substring is lexicographically smaller than, equal to, or greater than the reference sequence. As a constexpr and const method, it does not modify the object and can already be evaluated at compile time [SWS_CORE_02147].

Error Handling and Boundary Conditions

Regarding error handling and exception safety, AUTOSAR defines two mandatory deviations from the standard [SWS_CORE_02147]:

  • The member function is specified as noexcept and completely classified as exception safe [SWS_CORE_02147].
  • If the start position exceeds the length of the instance (pos1 > size()), no std::out_of_range exception is thrown, but a IsoStdOutOfRangeViolation is raised [SWS_CORE_02147].

Interpretation: Due to the combination of the noexcept guarantee and IsoStdOutOfRangeViolation, an out-of-bounds condition is not expected to be catchable by means of classic C++ try-catch blocks, but presumably leads to an immediate abort or error handling by the platform. Question Q-67fb8eda4c594a06 (open)

This usage note was generated automatically and is based exclusively on the specification data of AUTOSAR Adaptive Release R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02147
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02147@rel:R25-11#5bddcd39
Content hash
5bddcd39
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02147
Status: valid/unmigrated Version: rel:R25-11#d83e0662 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02147@rel:R25-11#d83e0662
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5bddcd392026-09-30
  • R24-11rel:R24-11#854c4f1e2026-10-14
  • R25-11rel:R25-11#d83e06622026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function contains [SWS_CORE_02154]

constexpr bool contains (StringView sv) const noexcept;

As per corresponding usage in [string.view] in [16]

Literaturverzeichnis SWS Core: [16] N4950: Working Draft, Standard for Programming Language C++ – open-std.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c871b0e95a94 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Call Context

The member function contains of class ara::core::StringView serves for the synchronous check of whether a string view contains a specified substring [SWS_CORE_02154]. The function is defined in header ara/core/string_view.h according to the semantics of the C++ standard working draft N4950 ([string.view]) [SWS_CORE_02154]. As a parameter, the method takes another instance of StringView (sv) by value and directly returns a boolean value of type bool: true if the subsequence occurs, otherwise false [SWS_CORE_02154].

Due to the specification as constexpr, the call can take place both at runtime and already during translation in the context of compile-time contexts [SWS_CORE_02154].

Error Handling and Exception Safety

For contains, the behavior is stipulated as exception safe and the signature is explicitly designated with noexcept [SWS_CORE_02154]. Consequently, the function never throws C++ exceptions under any circumstances and does not return errors via ara::core::Result or ara::core::ErrorCode. Neither DET nor DEM error messages exist for this basic function.

Concurrency and Limitations

As a const member function (const), contains does not modify the state of the StringView instance [SWS_CORE_02154]. Interpretation: Concurrent, purely reading calls on the same StringView instance or on the underlying character buffer are expected to be fully reentrant and concurrently safe, as long as the referenced memory area is not modified simultaneously by any thread. Question Q-80f1a9989a098913 (open) Special ordering conditions or initialization obligations beyond the provision of a valid StringView do not exist.

This usage note was generated automatically based on the AUTOSAR specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02154@rel:R25-11#cd398425
Content hash
cd398425
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02154
Status: valid/unmigrated Version: rel:R25-11#bf73e56e Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02154@rel:R25-11#bf73e56e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cd3984252026-09-30
  • R24-11rel:R24-11#95f693952026-10-14
  • R25-11rel:R25-11#bf73e56e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function contains [SWS_CORE_02155]

constexpr bool contains (char c) const noexcept;

As per corresponding usage in [string.view] in [16]

Literaturverzeichnis SWS Core: [16] N4950: Working Draft, Standard for Programming Language C++ – open-std.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b2baa55e3d18 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function contains synchronously checks whether a specific character c is contained within a ara::core::StringView [SWS_CORE_02155]. The function is declared in header ara/core/string_view.h and follows the semantics of [string.view] from the C++ working draft N4950 [SWS_CORE_02155]. It accepts a single character of type char and returns a boolean value of type bool, which presumably yields true if and only if the character is found in the referenced text range [SWS_CORE_02155]. Question Q-3293fccace7af3ab (open)

Regarding error handling, the operation is declared as noexcept and specified as exception-safe (exception safe) [SWS_CORE_02155]. No exceptions are thrown and no error codes are signaled via DET, DEM, or return types; non-existence of the character is regularly reported via the boolean return value.

Since the function is designated as constexpr and const, it can already be evaluated at compile time [SWS_CORE_02155]. Invocations do not modify the underlying ara::core::StringView object, which is why concurrent read accesses to the same instance should presumably be thread-safe. Question Q-298dbc4d080853bc (open)

In the interplay of basic types of the module core, contains serves for direct text inspection on string views [SWS_CORE_02155]. While types like ara::core::Result offer their own check mechanisms for contained values or errors – such as HasValue [SWS_CORE_00751] or CheckError [SWS_CORE_00765] –, contains operates lightweight without allocation or error encapsulation.

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02155
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02155@rel:R25-11#f7703003
Content hash
f7703003
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02155
Status: valid/unmigrated Version: rel:R25-11#d4b8d181 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02155@rel:R25-11#d4b8d181
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f77030032026-09-30
  • R24-11rel:R24-11#fe2d55f22026-10-14
  • R25-11rel:R25-11#d4b8d1812026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function contains [SWS_CORE_02156]

constexpr bool contains (const char *str) const noexcept;

As per corresponding usage in [string.view] in [16] except for the following deviations: 1. The function is noexcept

Literaturverzeichnis SWS Core: [16] N4950: Working Draft, Standard for Programming Language C++ – open-std.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b203260a22d2 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function contains of class ara::core::StringView checks synchronously whether the referenced string contains the character sequence str passed as a parameter [SWS_CORE_02156]. The function is provided via header file ara/core/string_view.h and returns the test result as a return value of type bool [SWS_CORE_02156]. Due to the declaration as constexpr, the call can be executed both at runtime and in the context of compile-time expressions [SWS_CORE_02156].

The functional semantics follow the definition of [string.view] in the Working Draft of the C++ standard N4950, but exhibit a mandatory deviation: In AUTOSAR Adaptive, the function is declared with identifier noexcept [SWS_CORE_02156]. Accordingly, the operation is specified as exception safe (exception safe), guaranteeing that no C++ exceptions are thrown during execution [SWS_CORE_02156]. Specific AUTOSAR error codes or notifications to development or diagnostic error tracers are not defined for this function [SWS_CORE_02156].

As a const member function (const), contains does not modify the calling instance [SWS_CORE_02156]. Interpretation: For parameter str, passing a valid, null-terminated string is expected to be assumed, since the interface uses const char *str and provides no separate length or error check [SWS_CORE_02156]. Question Q-a2d7cd456a72a792 (open)

This usage note was generated automatically based on the specification of AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02156
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02156@rel:R25-11#b6fe65ea
Content hash
b6fe65ea
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02156
Status: valid/unmigrated Version: rel:R25-11#6cdc600c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02156@rel:R25-11#6cdc600c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b6fe65ea2026-09-30
  • R24-11rel:R24-11#74254ddc2026-10-14
  • R25-11rel:R25-11#6cdc600c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function copy [SWS_CORE_02140]

size_type copy (char *s, size_type n, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept 2. if (pos > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 63860f6d57ee Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous member function copy of class ara::core::StringView ([SWS_CORE_02140]) copies a substring into a provided buffer. Access is provided via header file #include "ara/core/string_view.h":

  • Parameters: char *s points to the destination array, n determines the maximum number of characters to copy, and pos defines the starting position (default value 0).
  • Return value: A value of type size_type indicating the number of characters actually copied.
  • Semantics: The function operates synchronously and is aligned with the ISO C++ specification [string.view] ([SWS_CORE_02140]).

Error handling

In case of an error, when pos > size() holds, an IsoStdOutOfRangeViolation is raised ([SWS_CORE_02140]). This deviates from standard [string.view], which throws std::out_of_range. Since the interface is declared as noexcept, raising the violation presumably leads to immediate termination of the process (interpretation: no C++ exception is propagated). Question Q-4ddbe4dfb002c41f (open)

Concurrency and Limitations

The operation is specified as const as well as noexcept and is considered exception safe ([SWS_CORE_02140]). The caller must ensure that the destination array s provides sufficient memory for at least min(n, size() - pos) characters, as range errors of the destination buffer are not caught.

Interaction

Compared to ara::core::BasicString::copy ([SWS_CORE_03410]), which works with value_type and is classified as not exception safe, the variant in StringView provides an exception-safe noexcept guarantee ([SWS_CORE_02140]).

This text was created by an AI and is based exclusively on the specifications of the AUTOSAR payload.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02140
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02140@rel:R25-11#bfd7aa52
Content hash
bfd7aa52
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02140
Status: valid/unmigrated Version: rel:R25-11#c0d72cc2 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02140@rel:R25-11#c0d72cc2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bfd7aa522026-09-30
  • R24-11rel:R24-11#89e17bc12026-10-14
  • R25-11rel:R25-11#c0d72cc22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function crbegin [SWS_CORE_02126]

constexpr const_reverse_iterator crbegin () const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 231dd0a8e66b Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function crbegin of class ara::core::StringView synchronously returns a constant reverse iterator (const_reverse_iterator) to the first character of the reversed string view [SWS_CORE_02126]. The function takes no parameters, is declared via header file ara/core/string_view.h, and follows the standard semantics of [string.view] [SWS_CORE_02126].

Regarding error handling, the operation is defined as noexcept and specified as exception safe (exception safe) [SWS_CORE_02126]. Neither error codes are returned nor error messages via DET or DEM issued, since the call is guaranteed to execute without errors [SWS_CORE_02126].

Thanks to the specification as constexpr and const, the function can also be called within constant expressions at compile time [SWS_CORE_02126]. Interpretation: Parallel calls of crbegin on the same instance should be concurrently thread-safe, since the operation makes no modifications whatsoever to the object. Question Q-ce8bc6d0753d1aa8 (open)

The interface fits seamlessly into the cross-container iterator concept of AUTOSAR Adaptive Core. Equivalent constexpr implementations of crbegin are found in ara::core::Array [SWS_CORE_01260] as well as ara::core::Span [SWS_CORE_01978]. Furthermore, containers such as ara::core::Vector [SWS_CORE_01342], ara::core::Map [SWS_CORE_01450], and ara::core::BasicString [SWS_CORE_03049] also provide corresponding non-constexpr const_reverse_iterator entry points.

This text was generated by an AI system based on AUTOSAR specification R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02126
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02126@rel:R25-11#1f90ed5e
Content hash
1f90ed5e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02126
Status: valid/unmigrated Version: rel:R25-11#145020af Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02126@rel:R25-11#145020af
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1f90ed5e2026-09-30
  • R24-11rel:R24-11#40fe14e12026-10-14
  • R25-11rel:R25-11#145020af2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function crend [SWS_CORE_02127]

constexpr const_reverse_iterator crend () const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a2bec2dd4b77 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function crend of class ara::core::StringView returns a constant reverse iterator ([SWS_CORE_02127]). The call executes synchronously and without parameters on an existing instance from header ara/core/string_view.h. The returned const_reverse_iterator marks the logical end of a reverse iteration; according to the C++ reference [string.view], it points as a sentinel position to the theoretical element immediately preceding the first character of the string (interpretation: analogous to the C++ standard). Question Q-5fd666f8d3eaf308 (open)

Error Handling and Concurrency

The function is declared as noexcept and specified as exception safe (“exception safe”) ([SWS_CORE_02127]). Neither exceptions are thrown nor error codes returned or DET/DEM messages issued. Due to the constexpr qualification, the iterator can already be created at compile time. As a pure const method without state effects, concurrent read calls on the same instance should be concurrently safe (interpretation). Question Q-207e2b9561f61d27 (open)

Interaction

The interface follows the uniform iteration concept of ara::core for sequential data structures. Related specifications define analogous crend interfaces:

This text was created by an AI and summarizes the requirements from AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02127
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02127@rel:R25-11#ca92a6a3
Content hash
ca92a6a3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02127
Status: valid/unmigrated Version: rel:R25-11#3193f3f9 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02127@rel:R25-11#3193f3f9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ca92a6a32026-09-30
  • R24-11rel:R24-11#6418bfd72026-10-14
  • R25-11rel:R25-11#3193f3f92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function data [SWS_CORE_02136]

constexpr const_pointer data () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02136
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02136@rel:R25-11#a70d57b1
Content hash
a70d57b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02136
Status: valid/unmigrated Version: rel:R25-11#393a4be3 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02136@rel:R25-11#393a4be3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a70d57b12026-09-30
  • R24-11rel:R24-11#a06d4fdb2026-10-14
  • R25-11rel:R25-11#393a4be32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function empty [SWS_CORE_02131]

[[nodiscard]] constexpr bool empty () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02131@rel:R25-11#07748f7d
Content hash
07748f7d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02131
Status: valid/unmigrated Version: rel:R25-11#af9f18de Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02131@rel:R25-11#af9f18de
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#07748f7d2026-09-30
  • R24-11rel:R24-11#a91f4c372026-10-14
  • R25-11rel:R25-11#af9f18de2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function end [SWS_CORE_02121]

constexpr const_iterator end () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02121
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02121@rel:R25-11#b8de17a7
Content hash
b8de17a7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02121
Status: valid/unmigrated Version: rel:R25-11#ad81fc10 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02121@rel:R25-11#ad81fc10
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b8de17a72026-09-30
  • R24-11rel:R24-11#9eb908362026-10-14
  • R25-11rel:R25-11#ad81fc102026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ends_with [SWS_CORE_02151]

constexpr bool ends_with (StringView sv) const noexcept;

As per corresponding usage in [string.view] in [15]

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f73e35eb5e81 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function ara::core::StringView::ends_with synchronously checks whether the inspected character sequence ends with the passed subsequence sv [SWS_CORE_02151]. It is declared in the header file ara/core/string_view.h and follows the standardized C++ semantics according to [string.view] from ISO/IEC 14882:2020 [SWS_CORE_02151]. Thanks to being marked as constexpr, the comparison can already be evaluated at compile time. Because this is a const method, the calling object is not modified.

Error Handling and Concurrency

The specification assigns property exception safe to ends_with and declares it as noexcept [SWS_CORE_02151]. The function thus does not throw any exceptions and reports failures neither via AUTOSAR error channels such as DET or DEM nor via specific error codes. As a pure read operation on an immutable string view, the function is likely reentrant and safe for concurrent read accesses to the same instance without synchronization mechanisms. Question Q-821d4d0f216694ef (open)

Interaction

The method is part of class ara::core::StringView and is complemented by related overloads: In addition to evaluation against another StringView object, variants for checking against a single character char [SWS_CORE_02152] and against a null-terminated C string const char* [SWS_CORE_02153] are available, which are likewise exception-safe and usable at compile time.

This usage note was generated automatically based on the AUTOSAR payload.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02151@rel:R25-11#053459a5
Content hash
053459a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02151
Status: valid/unmigrated Version: rel:R25-11#c77b5791 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02151@rel:R25-11#c77b5791
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#053459a52026-09-30
  • R24-11rel:R24-11#a9dceeaa2026-10-14
  • R25-11rel:R25-11#c77b57912026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ends_with [SWS_CORE_02152]

constexpr bool ends_with (char c) const noexcept;

As per corresponding usage in [string.view] in [15]

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 36112573f039 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function ends_with of class ara::core::StringView checks synchronously whether the referenced string ends with the specified character c ([SWS_CORE_02152]). It is declared via header ara/core/string_view.h and follows the standardized behavior from [string.view] according to ISO/IEC 14882:2020 ([SWS_CORE_02152]). Due to the designation as constexpr, the evaluation can be performed both at runtime and beforehand during compilation ([SWS_CORE_02152]).

Error Handling and Runtime Behavior

The interface guarantees complete exception safety ("exception safe") and is provided with the specifier noexcept ([SWS_CORE_02152]). Consequently, it never throws exceptions and uses no error messages via DET or DEM. For an empty string, the check always yields the boolean result false.

Concurrency and Interaction

Since ends_with is defined as a pure const operation without state effects, concurrent read access from multiple threads to the same instance should be uncritical (interpretation). Question Q-b3a5dccbd8ff638a (open) In addition to the single character, ara::core::StringView provides two further overloads for suffix checks: comparison with another StringView ([SWS_CORE_02151]) as well as the check against a null-terminated C string of type const char* ([SWS_CORE_02153]). Both variants are likewise implemented synchronously, constexpr, and noexcept ([SWS_CORE_02151], [SWS_CORE_02153]).

This text was created by an AI; all technical statements are based exclusively on the specification basis.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02152@rel:R25-11#fba9ee73
Content hash
fba9ee73
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02152
Status: valid/unmigrated Version: rel:R25-11#cacab0b1 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02152@rel:R25-11#cacab0b1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#fba9ee732026-09-30
  • R24-11rel:R24-11#fd9a59562026-10-14
  • R25-11rel:R25-11#cacab0b12026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ends_with [SWS_CORE_02153]

constexpr bool ends_with (const char *str) const noexcept;

As per corresponding usage in [string.view] in [15] 1. The function is noexcept

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6d5cc865e3a5 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function ends_with of class ara::core::StringView synchronously checks whether the inspected character sequence ends with a specific string [SWS_CORE_02153]. The function accepts a pointer const char* str as a parameter and returns a return value of type bool [SWS_CORE_02153]. Due to the declaration as constexpr, evaluation can take place both at runtime and already at compile time [SWS_CORE_02153]. The functional semantics follow the definition of section [string.view] from standard ISO/IEC 14882:2020 [SWS_CORE_02153].

Regarding error handling, the function is declared as noexcept and classified as exception safe, which is why no C++ exceptions are thrown [SWS_CORE_02153]. Specific AUTOSAR error codes or error notifications to DET or DEM are not provided for this helper function.

Interpretation: When called, the parameter str is likely required to point to a valid, null-terminated string, since no additional length parameter is passed [SWS_CORE_02153]. Question Q-d6d076a1a2ab7dce (open) Because the method is qualified as const and does not modify internal state, concurrent read access to the same instance is safe.

The function is provided via the header file #include "ara/core/string_view.h" in the scope of ara::core::StringView [SWS_CORE_02153]. It complements related overloads of ends_with that take a StringView object [SWS_CORE_02151] or a single character char [SWS_CORE_02152] instead of a C string.

This usage note was generated automatically by an AI based on the specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02153@rel:R25-11#73a1a7ed
Content hash
73a1a7ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02153
Status: valid/unmigrated Version: rel:R25-11#cc48c5a6 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02153@rel:R25-11#cc48c5a6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#73a1a7ed2026-09-30
  • R24-11rel:R24-11#f1f834912026-10-14
  • R25-11rel:R25-11#cc48c5a62026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find [SWS_CORE_02157]

constexpr size_type find (StringView s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a92b06c6fdd1 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find of class ara::core::StringView synchronously searches for the first occurrence of the passed substring s starting from the start position pos according to the behavior in [string.view] [SWS_CORE_02157]. The function is defined as constexpr and const, allowing it to also be called at compile time and on immutable instances [SWS_CORE_02157].

Regarding error handling, the method is declared as noexcept and classified as exception safe [SWS_CORE_02157]; specific error codes as well as DET or DEM messages are not provided. Since execution does not modify the state of the object, concurrent read access by multiple threads of execution to the same StringView instance is likely permissible without additional synchronization. Question Q-e27507133b5a4e20 (open)

Within ara::core::StringView, this function is complemented by further search overloads for single characters of type char [SWS_CORE_02158] and C strings [SWS_CORE_02159], [SWS_CORE_02160]. In interaction with other containers, ara::core::BasicString provides a comparable search function for StringView [SWS_CORE_03315], whereas the function find in ara::core::Map serves to search for keys and returns iterators [SWS_CORE_01490].

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02157
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02157@rel:R25-11#29b1a542
Content hash
29b1a542
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02157
Status: valid/unmigrated Version: rel:R25-11#24d77d54 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02157@rel:R25-11#24d77d54
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#29b1a5422026-09-30
  • R24-11rel:R24-11#d36d983b2026-10-14
  • R25-11rel:R25-11#24d77d542026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find [SWS_CORE_02158]

constexpr size_type find (char c, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 25855dcf9257 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Parameters

The synchronous member function find of class ara::core::StringView searches from index position pos for the first occurrence of character c ([SWS_CORE_02158]). It is included via header file #include "ara/core/string_view.h" and returns the index of the match of type size_type as return value. If the character is not found, the value npos should be returned according to the reference to [string.view]. Question Q-60ea50d6f006004f (open)

Error Handling and Concurrency

The function is declared with noexcept and specified as exception safe (exception safe) ([SWS_CORE_02158]). Due to the designation as constexpr and const, it is suitable for constant expressions at compile time and does not modify the underlying object. Concurrent read accesses to the same instance are presumably reentrant and thread-safe as long as the referenced string in memory remains unchanged. Question (open)

Interaction and Alternatives

The method complements other overloads of find in ara::core::StringView that search for substrings ([SWS_CORE_02157]) or pointer sequences ([SWS_CORE_02159], [SWS_CORE_02160]). In contrast to the character-based search in ara::core::BasicString ([SWS_CORE_03324]), which is classified as not exception safe, this variant guarantees complete freedom from exceptions. It also distinguishes itself from the key-based search in ara::core::Map ([SWS_CORE_01490]).

This usage note was created automatically and is based on the specification AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02158
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02158@rel:R25-11#9c327ae9
Content hash
9c327ae9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02158
Status: valid/unmigrated Version: rel:R25-11#09e4d99c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02158@rel:R25-11#09e4d99c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9c327ae92026-09-30
  • R24-11rel:R24-11#9c7c07962026-10-14
  • R25-11rel:R25-11#09e4d99c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find [SWS_CORE_02159]

constexpr size_type find (const char *s, size_type pos, size_type n) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 0b317af9b1f1 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find of class ara::core::StringView ([SWS_CORE_02159]) serves for synchronously searching for a character sequence within the string view. It is provided via the header file ara/core/string_view.h. The function accepts a pointer s to a character array, a start position pos of type size_type, and the count of characters to search for n, and returns the found position as size_type. Interpretation: According to the referenced semantics from [string.view], s is likely to point to an array with at least n characters, and the value npos is likely to be returned in the case of an unsuccessful search. Question Q-e7f54bb1b42a99d8 (open)

Error Handling and Concurrency

The method is declared as noexcept and specified as exception safe ([SWS_CORE_02159]). Error states are thus not signaled via C++ exceptions. Since the function is defined as const and constexpr, it does not modify the instance and is suitable for evaluations at compile time as well as for concurrent read accesses.

Interaction

Within ara::core::StringView, the function complements further search overloads:

Compared to the corresponding signature in ara::core::BasicString ([SWS_CORE_03409]), which is declared as not exception safe and does not guarantee noexcept, the variant in StringView ([SWS_CORE_02159]) offers strict exception safety without allocation overhead.

This usage note was created by an AI based on the specification of AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02159
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02159@rel:R25-11#bdbbef63
Content hash
bdbbef63
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02159
Status: valid/unmigrated Version: rel:R25-11#c17459d4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02159@rel:R25-11#c17459d4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bdbbef632026-09-30
  • R24-11rel:R24-11#6676259f2026-10-14
  • R25-11rel:R25-11#c17459d42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find [SWS_CORE_02160]

constexpr size_type find (const char *s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f16e74818d29 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous member function find of class ara::core::StringView ([SWS_CORE_02160]) from header #include "ara/core/string_view.h" searches for the first occurrence of the specified C string s starting from the start position pos. The functional behavior complies with the C++ standard [string.view], but deviates by being explicitly designated as noexcept ([SWS_CORE_02160]).

Error handling

The function is defined as exception safe and guarantees the absence of any exceptions ([SWS_CORE_02160]). Specific error codes as well as reports to DET or DEM do not exist. Interpretation: If the searched string is not contained, the failure of the search is likely to be indicated by the return value npos analogously to the standard behavior of [string.view]. Question Q-febde79f1c992c2a (open)

Concurrency and Constraints

Since find is declared as constexpr and const ([SWS_CORE_02160]), the call does not modify the state of the StringView object and can already be evaluated at compile time. Interpretation: Concurrent read accesses across multiple threads are likely to be reentrant and concurrency-safe without additional synchronization measures. Question (open)

Interaction

Within ara::core::StringView, further overloads of find exist for StringView parameters ([SWS_CORE_02157]), single characters ([SWS_CORE_02158]), and substrings with an explicit length limitation n ([SWS_CORE_02159]). In contrast to analogous C-string search operations in ara::core::BasicString ([SWS_CORE_03408], [SWS_CORE_03409]), which are classified as not exception safe, the implementation in ara::core::StringView ensures complete exception safety ([SWS_CORE_02160]).

This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02160@rel:R25-11#064ea5bc
Content hash
064ea5bc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02160
Status: valid/unmigrated Version: rel:R25-11#90fc90fe Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02160@rel:R25-11#90fc90fe
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#064ea5bc2026-09-30
  • R24-11rel:R24-11#4ea581dd2026-10-14
  • R25-11rel:R25-11#90fc90fe2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_not_of [SWS_CORE_02173]

constexpr size_type find_first_not_of (StringView s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: fb4804b1c5ba Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_first_not_of of class ara::core::StringView ([SWS_CORE_02173]) serves for synchronously searching for the first character within the string view that is not contained in the passed StringView s. As a second parameter, the start position pos can optionally be specified (default value pos=0). The function returns the found index position as size_type. The behavior complies with the corresponding semantics in [string.view]. Interpretation: If no non-matching character is found, the function is likely to return the value npos in accordance with this standard semantics. Question Q-8f55419868615e5a (open)

Error Handling and Concurrency

The function is declared as noexcept and specified as exception safe (“exception safe”) ([SWS_CORE_02173]). No exceptions are thrown and no specific error reports via DET or DEM are defined. Due to the qualifiers const and constexpr, the call can take place side-effect-free at compile time or in parallel on unmodified objects.

Interplay and overloads

Within ara::core::StringView, the function is complemented by further noexcept overloads:

A similar search pattern exists for ara::core::BasicString, including with StringView ([SWS_CORE_03319]) and BasicString ([SWS_CORE_03337]). In contrast to StringView, the overloads there for pointers and characters ([SWS_CORE_03338], [SWS_CORE_03339], [SWS_CORE_03340]) are classified as not exception safe.

This text was created by an AI; it does not replace studying the referenced specifications.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02173
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02173@rel:R25-11#68d44c14
Content hash
68d44c14
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02173
Status: valid/unmigrated Version: rel:R25-11#1ce3807a Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02173@rel:R25-11#1ce3807a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#68d44c142026-09-30
  • R24-11rel:R24-11#396f73c12026-10-14
  • R25-11rel:R25-11#1ce3807a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_not_of [SWS_CORE_02174]

constexpr size_type find_first_not_of (char c, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d93e1265f673 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_not_of of class ara::core::StringView synchronously determines the position of the first character within the character sequence that is not equal to the passed character c [SWS_CORE_02174]. The search starts by default at the beginning of the view or from the optional offset pos. By referencing standard [string.view], the function presumably returns the zero-based index of type size_type of the found character or the value npos if no differing character exists. Question Q-9f3eeedf35e475e7 (open)

With regard to error handling, the function is declared as noexcept and specified as exception safe [SWS_CORE_02174]. It thus throws no exceptions, uses no DET or DEM messages, and reports the non-finding of a character purely via its return value.

As a constexpr and const method, find_first_not_of can already be evaluated at compile time and guarantees stateless, side-effect-free read access to the underlying character array. Concurrent calls on the same StringView instance are therefore reentrant and safe without additional synchronization.

The function is part of a family of search operations in ara::core::StringView and complements the overloads for searching for differing subsequences via StringView [SWS_CORE_02173] as well as pointer-length pairs or null-terminated C strings [SWS_CORE_02175] [SWS_CORE_02176]. A functional equivalent for mutable strings exists in ara::core::BasicString [SWS_CORE_03340], which, in contrast to StringView, is declared as not exception safe.

This text was created by an AI; all statements are based on the specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02174
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02174@rel:R25-11#f2e5d2f0
Content hash
f2e5d2f0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02174
Status: valid/unmigrated Version: rel:R25-11#2d0f4a99 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02174@rel:R25-11#2d0f4a99
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f2e5d2f02026-09-30
  • R24-11rel:R24-11#ac2cf4862026-10-14
  • R25-11rel:R25-11#2d0f4a992026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_not_of [SWS_CORE_02175]

constexpr size_type find_first_not_of (const char *s, size_type pos, size_type n) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 0b62a700470a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_not_of of class ara::core::StringView serves according to [SWS_CORE_02175] to synchronously find the first character within the string that does not occur in a predefined character sequence. The behavior basically corresponds to the usage in [string.view] with the documented deviation that the function is declared as noexcept [SWS_CORE_02175]. Interpretation: Via the reference to [string.view], parameters s, pos, and n are likely to limit the search starting from position pos to the first n characters of array s [SWS_CORE_02175]. Question Q-745f5bc9246c11a2 (open)

Usage and Error Handling

The function is defined as constexpr and const, is provided via the header file #include "ara/core/string_view.h", and returns an index of type size_type [SWS_CORE_02175]. The specification classifies the method as exception safe [SWS_CORE_02175]. Since it is specified as noexcept, it throws no exceptions; error codes or messages to DET or DEM are not defined [SWS_CORE_02175].

Interaction and Alternatives

In ara::core::StringView, related overloads are provided for different search patterns:

  • Search via another string view StringView according to [SWS_CORE_02173],
  • Search for the first deviation from a single character c according to [SWS_CORE_02174], and
  • Search using a null-terminated pointer const char *s without explicit length specification according to [SWS_CORE_02176].

In contrast to the structurally similar signature in ara::core::BasicString [SWS_CORE_03338], which is classified as not exception safe and does not feature noexcept, the variant in StringView offers complete exception safety [SWS_CORE_02175].

This usage note was generated automatically based on the specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02175
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02175@rel:R25-11#0789a6a5
Content hash
0789a6a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02175
Status: valid/unmigrated Version: rel:R25-11#37315b78 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02175@rel:R25-11#37315b78
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0789a6a52026-09-30
  • R24-11rel:R24-11#979df1152026-10-14
  • R25-11rel:R25-11#37315b782026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_not_of [SWS_CORE_02176]

constexpr size_type find_first_not_of (const char *s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6459da1476d6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_not_of of class ara::core::StringView ([SWS_CORE_02176]) from header ara/core/string_view.h searches synchronously starting from start position pos for the first character that does not occur in string s. The behavior corresponds to the definition in [string.view], but deviates by being explicitly designated as noexcept ([SWS_CORE_02176]). Interpretation: From the standard reference to [string.view], it likely follows that s must point to a valid, null-terminated character array and that npos is returned in case of failure. Question Q-aa48a331975274a1 (open)

Regarding error handling, the function is specified as exception safe (exception safe) ([SWS_CORE_02176]). No exceptions are thrown; runtime error notifications via AUTOSAR mechanisms such as DET or DEM are not defined for this function in the payload.

Due to being qualified as constexpr and const ([SWS_CORE_02176]), the search operation does not modify the state of the StringView object. It is reentrant and can be executed in arbitrary threads as well as already at compile time in constant expressions.

In interaction with related interfaces, the function complements further overloads within ara::core::StringView, namely for searching with a StringView ([SWS_CORE_02173]), a single character char ([SWS_CORE_02174]), or a buffer with length restriction n ([SWS_CORE_02175]). In contrast to the pointer-based overloads in ara::core::BasicString ([SWS_CORE_03338], [SWS_CORE_03339]), which are classified as not exception safe, this variant on StringView guarantees complete exception safety.

This usage note was generated automatically and is based on the specifications of AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02176
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02176@rel:R25-11#bafb3283
Content hash
bafb3283
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02176
Status: valid/unmigrated Version: rel:R25-11#088ec6f3 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02176@rel:R25-11#088ec6f3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bafb32832026-09-30
  • R24-11rel:R24-11#de0195822026-10-14
  • R25-11rel:R25-11#088ec6f32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_of [SWS_CORE_02165]

constexpr size_type find_first_of (StringView s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: ac2c1254417a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_of of class ara::core::StringView ([SWS_CORE_02165]) searches a character sequence synchronously starting from index pos for the first occurrence of any character from the passed character view s. The method returns the found position as an index of type size_type.

According to the specification, the function is declared as noexcept and classified as exception-safe (exception safe) ([SWS_CORE_02165]). It throws no exceptions and reports no errors to DET or DEM. Interpretation: If no matching character is found or the start index is outside the valid range, the result is likely to correspond to the value npos, analogous to the standard semantics of [string.view]. Question Q-ad877979579b5bd1 (open)

Since find_first_of is specified as const, calling it performs no state changes ([SWS_CORE_02165]). Concurrent read accesses to the same instance are possible without additional synchronization. Thanks to the designation as constexpr, the search can additionally be evaluated at compile time.

In module core, further overloads exist for ara::core::StringView, including for individual characters ([SWS_CORE_02166]), pointers with an explicit character count ([SWS_CORE_02167]), and null-terminated strings ([SWS_CORE_02168]). In class ara::core::BasicString, a comparable overload for StringView is provided with [SWS_CORE_03317]; in contrast to StringView, however, the pointer-based search functions there are declared as not exception safe ([SWS_CORE_03330]).

This text was generated by an AI and serves as guidance based on the AUTOSAR specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02165@rel:R25-11#f273ce89
Content hash
f273ce89
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02165
Status: valid/unmigrated Version: rel:R25-11#64f2bd5c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02165@rel:R25-11#64f2bd5c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f273ce892026-09-30
  • R24-11rel:R24-11#372e9b2c2026-10-14
  • R25-11rel:R25-11#64f2bd5c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_of [SWS_CORE_02166]

constexpr size_type find_first_of (char c, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7942ee3cb4b2 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_first_of of class ara::core::StringView serves to synchronously search for the first occurrence of a character within the referenced string [SWS_CORE_02166]. It is available via the header ara/core/string_view.h and accepts the sought character c as well as optionally the start position pos, which is set to 0 by default. The function returns the index of the match of type size_type according to the behavior in [string.view] [SWS_CORE_02166]. As a constexpr method, it can be executed both at runtime and during compilation.

Error handling

The function is declared as noexcept and explicitly classified as “exception safe” [SWS_CORE_02166]. No exceptions are thrown, and the specification defines no specific error codes or reports to Development Error Tracer (DET) or Diagnostic Event Manager (DEM).

Concurrency and Limitations

As a const member function (const), calling it does not modify the instance of ara::core::StringView [SWS_CORE_02166]. Interpretation: Parallel, reading invocations on the same object from multiple threads are therefore likely to be reentrant and concurrently safe as long as the underlying character buffer remains unchanged. Question Q-b86dddc1a54a05e1 (open)

Interaction

The function is part of the search interfaces of ara::core::StringView. In addition to searching for single characters, analogous overloads, likewise specified as noexcept, exist for substrings via StringView [SWS_CORE_02165] as well as pointer representations [SWS_CORE_02167], [SWS_CORE_02168]. In contrast, class ara::core::BasicString declares related overloads for single characters [SWS_CORE_03332] and pointers [SWS_CORE_03330], [SWS_CORE_03331] without noexcept and classifies them as “not exception safe”, whereas the string variants with BasicString [SWS_CORE_03329] and StringView [SWS_CORE_03317] remain exception-safe.

This usage note was generated automatically based on the specification requirements.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02166
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02166@rel:R25-11#bf206aed
Content hash
bf206aed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02166
Status: valid/unmigrated Version: rel:R25-11#23a60a74 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02166@rel:R25-11#23a60a74
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bf206aed2026-09-30
  • R24-11rel:R24-11#7a1c0d2e2026-10-14
  • R25-11rel:R25-11#23a60a742026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_of [SWS_CORE_02167]

constexpr size_type find_first_of (const char *s, size_type pos, size_type n) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 4de0774d92b5 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_of of class ara::core::StringView ([SWS_CORE_02167]) from the header file #include "ara/core/string_view.h" searches synchronously for the first occurrence of a character from the character sequence s starting from position pos. Parameter n limits the number of characters to consider from the passed pointer. The function returns the found position as size_type; if no character is found, the value npos is likely returned according to [string.view]. Question Q-eac57a47043e5b33 (open)

The following specifications apply to the call context and error handling:

  • Exception safety and compile-time evaluation: The method is defined as constexpr and const. As a deviation from standard [string.view], it is explicitly declared with noexcept and specified as “exception safe” ([SWS_CORE_02167]). No exceptions are thrown and no error codes are reported.
  • Related overloads in StringView: In addition, variants for string pointers without length limitation ([SWS_CORE_02168]), for ara::core::StringView objects ([SWS_CORE_02165]), and for single characters ([SWS_CORE_02166]) are available, which are likewise noexcept.
  • Differentiation from BasicString: In contrast to the corresponding overload in ara::core::BasicString ([SWS_CORE_03330]), which is listed as “not exception safe” and without noexcept, the StringView implementation guarantees complete freedom from exceptions ([SWS_CORE_02167]).

This usage note was created automatically and is based exclusively on the AUTOSAR specification for Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02167
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02167@rel:R25-11#2b115437
Content hash
2b115437
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02167
Status: valid/unmigrated Version: rel:R25-11#25686111 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02167@rel:R25-11#25686111
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2b1154372026-09-30
  • R24-11rel:R24-11#d22b7d8e2026-10-14
  • R25-11rel:R25-11#256861112026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_first_of [SWS_CORE_02168]

constexpr size_type find_first_of (const char *s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 729a0ca675d4 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_first_of of class ara::core::StringView from header ara/core/string_view.h searches the character view starting from position pos synchronously for the first occurrence of any character from the string s [SWS_CORE_02168]. As return value, it provides the corresponding index as size_type. Due to the specification as constexpr, this search operation can already be executed at compile time [SWS_CORE_02168].

Error Handling and Concurrency

The function is declared as noexcept and specified as exception safe (exception safe) [SWS_CORE_02168]. Specific error codes or reports to DET or DEM do not exist. Since the method does not modify the state of the instance (const), concurrent read access from multiple threads is safe. Interpretation: Since the signature does not provide a length parameter, the caller is likely required to pass a valid null-terminated C string to s in order to avoid undefined behavior. Question Q-6b692ff18063aef5 (open)

Interaction

Within ara::core::StringView, the function complements the overloads for StringView [SWS_CORE_02165], single characters [SWS_CORE_02166], and character sequences with explicit length limitation n [SWS_CORE_02167], all of which are defined as constexpr and noexcept. In contrast to the analogous pointer search functions in ara::core::BasicString, which are classified as not exception safe (not exception safe) [SWS_CORE_03330], [SWS_CORE_03331], the implementation in ara::core::StringView guarantees complete freedom from exceptions [SWS_CORE_02168].

This text was created and curated by an AI.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02168
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02168@rel:R25-11#b20a397c
Content hash
b20a397c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02168
Status: valid/unmigrated Version: rel:R25-11#c96dbb77 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02168@rel:R25-11#c96dbb77
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b20a397c2026-09-30
  • R24-11rel:R24-11#9429ef932026-10-14
  • R25-11rel:R25-11#c96dbb772026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_not_of [SWS_CORE_02177]

constexpr size_type find_last_not_of (StringView s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 3dd613d4243d Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_not_of of class ara::core::StringView serves for synchronously searching for the last character within the string that is not contained in the passed character sequence s ([SWS_CORE_02177]). The behavior complies with the C++ standard section [string.view] ([SWS_CORE_02177]). The function returns the found index position as size_type.

Regarding execution and safety, the method is characterized by the following properties:

  • Compile time and exception safety: The function is declared as constexpr and noexcept and classified as “exception safe” ([SWS_CORE_02177]); error codes or error reports (such as DET/DEM) are not provided for this C++ helper type.
  • Parameters and search position: pos=0 is stored as the start index in the signature ([SWS_CORE_02177]). Interpretation: Without an explicit specification of pos, the search is likely to take place backward from position 0, which is why callers typically have to pass a corresponding end position for a search over the entire string. Question Q-35ba83bfea4c90c0 (open)
  • Concurrency: Since it is a const member function (const), concurrent read access to the same StringView instance is possible without side effects.

In module core, find_last_not_of for ara::core::StringView is additionally overloaded for single characters char ([SWS_CORE_02178]) and for pointers to strings const char* ([SWS_CORE_02179], [SWS_CORE_02180]). A related search operation on ara::core::BasicString also exists for StringView parameters ([SWS_CORE_03320]).

This text was created by an AI and is based on AUTOSAR standard Release R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02177
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02177@rel:R25-11#fc7953eb
Content hash
fc7953eb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02177
Status: valid/unmigrated Version: rel:R25-11#900f4d21 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02177@rel:R25-11#900f4d21
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#fc7953eb2026-09-30
  • R24-11rel:R24-11#fd03fedc2026-10-14
  • R25-11rel:R25-11#900f4d212026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_not_of [SWS_CORE_02178]

constexpr size_type find_last_not_of (char c, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 392e437f1cb7 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The function find_last_not_of of class ara::core::StringView searches a string view backward for the last character that does not match the passed character c [SWS_CORE_02178]. The function is declared as constexpr and noexcept and is executed synchronously. It returns the found position as size_type; the optional parameter pos determines the start position of the backward search and has the default value 0 [SWS_CORE_02178].

Regarding error handling, the operation is specified as exception safe (exception safe); specific AUTOSAR error codes or reports to DET or DEM are not provided for this element [SWS_CORE_02178]. Since it is a stateless const member function on an immutable view, concurrent read access to the same instance is likely thread-safe (interpretation). Question Q-6de8853198b2238d (open)

Within ara::core::StringView, the function complements further overloads that enable searching based on another StringView [SWS_CORE_02177] or via pointers to strings [SWS_CORE_02179], [SWS_CORE_02180]. Corresponding search functions are also provided by class ara::core::BasicString, such as for searching for single characters [SWS_CORE_03344] or string views [SWS_CORE_03320], although those for character sequences are partly not designated as exception safe [SWS_CORE_03342].

This usage note was generated automatically based on the AUTOSAR specification for R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02178
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02178@rel:R25-11#0cd1a780
Content hash
0cd1a780
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02178
Status: valid/unmigrated Version: rel:R25-11#90fd2d25 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02178@rel:R25-11#90fd2d25
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0cd1a7802026-09-30
  • R24-11rel:R24-11#7574854f2026-10-14
  • R25-11rel:R25-11#90fd2d252026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_not_of [SWS_CORE_02179]

constexpr size_type find_last_not_of (const char *s, size_type pos, size_type n) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8368e2692a37 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_not_of of class ara::core::StringView ([SWS_CORE_02179]) determines the last position of a character within the character view up to position pos that does not occur in the first n characters of the passed character array s. The behavior corresponds to the C++ standard reference [string.view] ([SWS_CORE_02179]). The function operates synchronously and returns an index of type size_type; if no differing character is found, an invalid index value such as npos will likely result following convention. Question Q-ac62917eff214d0b (open)

Error Handling and Concurrency

According to the specification, the function is declared as noexcept and classified as exception-safe (exception safe) ([SWS_CORE_02179]). According to the payload, specific error codes, DET, or DEM reports do not exist. As a const and constexpr function, the call does not modify the state of the StringView object and is suitable for compile-time evaluations as well as concurrent read access to the same instance.

Interplay and overloads

The function is part of a group of other search functions of ara::core::StringView, including variants for searching for StringView objects ([SWS_CORE_02177]), single characters ([SWS_CORE_02178]), and null-terminated strings ([SWS_CORE_02180]). In contrast to the corresponding counterpart in ara::core::BasicString ([SWS_CORE_03342]), which is not designated as exception safe, the StringView variant guarantees complete freedom from exceptions ([SWS_CORE_02179]).

This text was generated by an AI. AUTOSAR specifications are the primary reference material.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02179
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02179@rel:R25-11#0473290e
Content hash
0473290e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02179
Status: valid/unmigrated Version: rel:R25-11#4f63c0a8 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02179@rel:R25-11#4f63c0a8
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0473290e2026-09-30
  • R24-11rel:R24-11#5e1376c92026-10-14
  • R25-11rel:R25-11#4f63c0a82026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_not_of [SWS_CORE_02180]

constexpr size_type find_last_not_of (const char *s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 0106d9b9a697 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_not_of of class ara::core::StringView synchronously searches for the last character within the character view that does not occur in the passed string s [SWS_CORE_02180]. The function is specified as constexpr and const and is provided via the header file ara/core/string_view.h [SWS_CORE_02180]. The call accepts the pointer s to the comparison characters as well as optionally the start position pos and returns the found position of type size_type [SWS_CORE_02180].

Error Handling and Exception Safety

The function is declared as noexcept and defined as exception-safe (exception safe) [SWS_CORE_02180]. No specific error codes are returned and no exceptions are thrown. Compared to the underlying specification [string.view], the explicit deviation consists in the guaranteed noexcept property [SWS_CORE_02180].

Interaction with related functions

Within ara::core::StringView, related overloads exist for the search:

In the related class ara::core::BasicString, analogous search functions are available [SWS_CORE_03320], although pointer overloads there are deviantly classified as not exception-safe (not exception safe) [SWS_CORE_03343].

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02180
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02180@rel:R25-11#70baa39a
Content hash
70baa39a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02180
Status: valid/unmigrated Version: rel:R25-11#75e15f4c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02180@rel:R25-11#75e15f4c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#70baa39a2026-09-30
  • R24-11rel:R24-11#ddba2e792026-10-14
  • R25-11rel:R25-11#75e15f4c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_of [SWS_CORE_02169]

constexpr size_type find_last_of (StringView s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6bb48053b1d5 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_of of ara::core::StringView synchronously determines the last occurrence of any character from the passed string view s within the current character sequence view according to [string.view] [SWS_CORE_02169]. A string view s and an optional start position pos, whose default value is defined as 0 according to the signature [SWS_CORE_02169], are passed as parameters. The return value is of type size_type and provides the index of the last matching character [SWS_CORE_02169].

Error Handling and Concurrency

The method is declared as noexcept and specified as exception safe (exception safe); specific error codes or reports to DET or DEM do not exist for this function [SWS_CORE_02169]. Due to the qualification as constexpr, the evaluation can already take place at compile time [SWS_CORE_02169]. Since this is a pure read operation on an immutable view, the function is likely safe for concurrent read accesses without synchronization overhead. Question Q-eb7f34ac11d0aa6f (open)

Interaction

Within ara::core::StringView, further overloads of find_last_of exist that accept single characters char [SWS_CORE_02170] or C strings with length specification [SWS_CORE_02171] or null termination [SWS_CORE_02172]. Analogously, the owning class ara::core::BasicString provides corresponding counterparts, such as the overload for StringView [SWS_CORE_03318] and BasicString [SWS_CORE_03333], where the value npos is used as the default value for pos.

This text was generated by an AI system and relies exclusively on the specification data from AUTOSAR R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02169
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02169@rel:R25-11#3a859788
Content hash
3a859788
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02169
Status: valid/unmigrated Version: rel:R25-11#2a03c520 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02169@rel:R25-11#2a03c520
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#3a8597882026-09-30
  • R24-11rel:R24-11#6d01cb3a2026-10-14
  • R25-11rel:R25-11#2a03c5202026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_of [SWS_CORE_02170]

constexpr size_type find_last_of (char c, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: daacb511fb62 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_of of class ara::core::StringView serves for synchronously finding the last occurrence of a single character [SWS_CORE_02170]. It is declared in header <ara/core/string_view.h> and specified as constexpr and noexcept [SWS_CORE_02170].

Usage and Semantics

The method searches the character view for the passed character c, with the search being performed backward starting from position pos [SWS_CORE_02170]. pos = 0 is stored as the default value in the function signature [SWS_CORE_02170]. According to the standard reference to [string.view], the call returns the zero-based index of the match; Interpretation: If the character is not found in the searched range, the method is likely to return StringView::npos. Question Q-099400a9a1a73c09 (open)

Error Handling and Concurrency

The operation is declared as noexcept and is considered completely exception safe (exception safe) [SWS_CORE_02170]. Specific error codes, AUTOSAR DET, or DEM reports do not exist. Since it is a non-modifying operation on an immutable view, it can be used without side effects in concurrent read scenarios or at compile time.

Interaction with related overloads

Within ara::core::StringView, the function complements further overloads of find_last_of that accept search patterns as StringView [SWS_CORE_02169] or as C-string pointers [SWS_CORE_02171], [SWS_CORE_02172]. In contrast to the related class ara::core::BasicString, whose character-based variant [SWS_CORE_03336] is classified as not exception safe and uses pos = npos as default, this implementation guarantees strict exception safety.

This text was created by an AI and serves as guidance. The AUTOSAR specification is binding.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02170
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02170@rel:R25-11#5804ed43
Content hash
5804ed43
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02170
Status: valid/unmigrated Version: rel:R25-11#3cda8191 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02170@rel:R25-11#3cda8191
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5804ed432026-09-30
  • R24-11rel:R24-11#ccdccbf92026-10-14
  • R25-11rel:R25-11#3cda81912026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_of [SWS_CORE_02171]

constexpr size_type find_last_of (const char *s, size_type pos, size_type n) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 06784379044e Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_of of class ara::core::StringView ([SWS_CORE_02171]) serves for synchronously searching for the last occurrence of any character from a set of n characters pointed to by pointer s. The search is performed backward starting from position pos. The function is provided via the header file #include "ara/core/string_view.h" and, due to the declaration as constexpr, can also be executed in the context of compile-time evaluations.

Error Handling and Exception Safety

The function is explicitly declared as noexcept and specified as exception safe (exception safe) ([SWS_CORE_02171]). In the event of an error or if not found, no exceptions are thrown and no DET or DEM reports are generated; the behavior follows the semantics of [string.view].

Restrictions and Concurrency

As a const-qualified method, find_last_of does not modify the underlying StringView object. Interpretation: The caller presumably must ensure that pointer s points to at least n valid characters, since the specification does not define independent buffer checks. Question Q-8d6241b8e7adc61d (open)

Interaction

The method complements the other overloads of find_last_of within ara::core::StringView, including the variants for StringView ([SWS_CORE_02169]), single characters ([SWS_CORE_02170]), and null-terminated strings ([SWS_CORE_02172]). In contrast to the overload in ara::core::BasicString ([SWS_CORE_03334]), which is classified as not exception safe, the StringView implementation guarantees complete noexcept semantics.

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02171
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02171@rel:R25-11#29d74662
Content hash
29d74662
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02171
Status: valid/unmigrated Version: rel:R25-11#abf4737c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02171@rel:R25-11#abf4737c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#29d746622026-09-30
  • R24-11rel:R24-11#d5158f122026-10-14
  • R25-11rel:R25-11#abf4737c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function find_last_of [SWS_CORE_02172]

constexpr size_type find_last_of (const char *s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8e0d3d1f38ec Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_of of class ara::core::StringView serves for finding the last occurrence of any character from a specified character sequence [SWS_CORE_02172]. It is defined in header #include "ara/core/string_view.h" and follows the semantics of the C++ standard [string.view] with the specific deviation that the function is specified as noexcept [SWS_CORE_02172].

Usage and Parameters

The function accepts a pointer to a character sequence const char *s and an optional start position size_type pos = 0 for starting the backward search [SWS_CORE_02172]. Interpretation: Parameter s is likely required to point to a valid, null-terminated string, since, in contrast to overload [SWS_CORE_02171], the length is not specified separately. Question Q-52f8ae523925f82b (open) The return value of type size_type provides the index of the found character, wherein the call as constexpr can also be evaluated at compile time [SWS_CORE_02172].

Error Handling and Concurrency

The function is specified as noexcept and exception safe (exception safe) [SWS_CORE_02172]. It does not throw C++ exceptions and does not generate DET or DEM reports. As a const member function (const), it does not modify the underlying StringView instance [SWS_CORE_02172].

Interaction

Within ara::core::StringView, closely related overloads are provided for a StringView object [SWS_CORE_02169], a single character char [SWS_CORE_02170], and pointers with an explicit length limitation n [SWS_CORE_02171]. Analogous interfaces are found in ara::core::BasicString ([SWS_CORE_03318], [SWS_CORE_03335]), where pointer operations there are deviantly declared as not exception safe [SWS_CORE_03335].

This text was generated by an AI based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02172
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02172@rel:R25-11#0e4b2707
Content hash
0e4b2707
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02172
Status: valid/unmigrated Version: rel:R25-11#f2ed8d65 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02172@rel:R25-11#f2ed8d65
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0e4b27072026-09-30
  • R24-11rel:R24-11#3d9606592026-10-14
  • R25-11rel:R25-11#f2ed8d652026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function front [SWS_CORE_02134]

constexpr const_reference front () const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Undefiniertes VerhaltenThe behavior of this function is undefined if: (empty() == true)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02134
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02134@rel:R25-11#062b8347
Content hash
062b8347
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02134
Status: valid/unmigrated Version: rel:R25-11#7eb16d28 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02134@rel:R25-11#7eb16d28
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#062b83472026-09-30
  • R24-11rel:R24-11#e4ea223b2026-10-14
  • R25-11rel:R25-11#7eb16d282026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function length [SWS_CORE_02129]

constexpr size_type length () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02129
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02129@rel:R25-11#f18abc3c
Content hash
f18abc3c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02129
Status: valid/unmigrated Version: rel:R25-11#ad8f44cd Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02129@rel:R25-11#ad8f44cd
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f18abc3c2026-09-30
  • R24-11rel:R24-11#1b5c3ba12026-10-14
  • R25-11rel:R25-11#ad8f44cd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function max_size [SWS_CORE_02130]

constexpr size_type max_size () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02130
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02130@rel:R25-11#7cb038d2
Content hash
7cb038d2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02130
Status: valid/unmigrated Version: rel:R25-11#ba5261b2 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02130@rel:R25-11#ba5261b2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7cb038d22026-09-30
  • R24-11rel:R24-11#65d6d7692026-10-14
  • R25-11rel:R25-11#ba5261b22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function operator= [SWS_CORE_02116] Upstream: RS_AP_00145

constexpr StringView & operator= (const StringView &other) noexcept=default;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02116
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02116@rel:R25-11#07f45d52
Content hash
07f45d52
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02116
Status: valid/unmigrated Version: rel:R25-11#474dfff5 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02116@rel:R25-11#474dfff5
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#07f45d522026-09-30
  • R24-11rel:R24-11#5feb99a32026-10-14
  • R25-11rel:R25-11#474dfff52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function operator= [SWS_CORE_02118] Upstream: RS_AP_00145

constexpr StringView & operator= (StringView &&other) noexcept=default;

[AUTOSAR defined] not present in ISO-14882. Move assignment operator

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02118
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02118@rel:R25-11#94f1be95
Content hash
94f1be95
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02118
Status: valid/unmigrated Version: rel:R25-11#c1fe1b68 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02118@rel:R25-11#c1fe1b68
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#94f1be952026-09-30
  • R24-11rel:R24-11#604b81ec2026-10-14
  • R25-11rel:R25-11#c1fe1b682026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function operator[] [SWS_CORE_02132]

constexpr const_reference operator[] (size_type pos) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Undefiniertes VerhaltenThe behavior of this function is undefined if: (pos >= size())

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02132@rel:R25-11#1f32ca17
Content hash
1f32ca17
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02132
Status: valid/unmigrated Version: rel:R25-11#48ad2cf7 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02132@rel:R25-11#48ad2cf7
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1f32ca172026-09-30
  • R24-11rel:R24-11#3e2e7dd12026-10-14
  • R25-11rel:R25-11#48ad2cf72026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function rbegin [SWS_CORE_02124]

constexpr const_reverse_iterator rbegin () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02124
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02124@rel:R25-11#05584e39
Content hash
05584e39
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02124
Status: valid/unmigrated Version: rel:R25-11#220a6a7e Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02124@rel:R25-11#220a6a7e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#05584e392026-09-30
  • R24-11rel:R24-11#6630fc1a2026-10-14
  • R25-11rel:R25-11#220a6a7e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function remove_prefix [SWS_CORE_02137]

constexpr void remove_prefix (size_type n) noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 718964f271f2 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function remove_prefix of class ara::core::StringView ([SWS_CORE_02137]) is provided via header file #include "ara/core/string_view.h". It has signature constexpr void remove_prefix (size_type n) noexcept; ([SWS_CORE_02137]). The function accepts parameter n of type size_type and does not return a value. The semantics correspond to the standard usage in [string.view], but deviate in that the function is declared as noexcept ([SWS_CORE_02137]). As an interpretation, the method is also expected to be evaluable at compile time thanks to the constexpr specification. Question Q-52b1ae9faeef8180 (open)

Error Handling and Restrictions

The function is specified as exception safe (exception safe) and throws no exceptions ([SWS_CORE_02137]). Specific error codes or notifications via DET or DEM are not defined. However, an essential restriction applies: The behavior of the function is undefined if n > size() is true ([SWS_CORE_02137]). Callers must ensure before execution that the number of characters to be removed does not exceed the current length of the string view. Further specifications regarding reentrancy or concurrency are not described in the standard.

This usage note was generated by an AI based on the specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Undefiniertes VerhaltenThe behavior of this function is undefined if: (n > size())

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02137
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02137@rel:R25-11#25a72b18
Content hash
25a72b18
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02137
Status: valid/unmigrated Version: rel:R25-11#ec454e9c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02137@rel:R25-11#ec454e9c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#25a72b182026-09-30
  • R24-11rel:R24-11#33b8e6a82026-10-14
  • R25-11rel:R25-11#ec454e9c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function remove_suffix [SWS_CORE_02138]

constexpr void remove_suffix (size_type n) noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 23bb3382cb4c Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function remove_suffix of class ara::core::StringView is provided via header file #include "ara/core/string_view.h" [SWS_CORE_02138]. It serves to shorten the character window referenced by the view at the right margin (suffix) by the specified number of n characters. The operation is executed synchronously directly on the calling instance without a return value (void) [SWS_CORE_02138]. Thanks to the designation as constexpr, the function can also be called at compile time in compile-time contexts [SWS_CORE_02138].

Regarding error handling, exception safety, and constraints, the following specification requirements apply [SWS_CORE_02138]:

  • Exception safety and standard deviation: The semantics are generally based on the corresponding usage in [string.view] of the C++ standard, but exhibit as an explicit deviation that the function is declared as noexcept and specified as exception safe (exception safe) [SWS_CORE_02138]. It therefore never throws exceptions and reports no error codes.
  • Undefined behavior with invalid parameter: The behavior of the function is explicitly specified as undefined if the passed parameter n is greater than the current length of the view (n > size()) [SWS_CORE_02138].
  • Caller responsibility: Since neither exception handling nor runtime checks are provided, it is entirely the responsibility of the calling code to ensure that precondition n <= size() is always met before the call is made.

This usage note was generated automatically and is based exclusively on the AUTOSAR specification for R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Undefiniertes VerhaltenThe behavior of this function is undefined if: (n > size())

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02138
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02138@rel:R25-11#423ca125
Content hash
423ca125
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02138
Status: valid/unmigrated Version: rel:R25-11#f46ba019 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02138@rel:R25-11#f46ba019
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#423ca1252026-09-30
  • R24-11rel:R24-11#1835e3b62026-10-14
  • R25-11rel:R25-11#f46ba0192026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function rend [SWS_CORE_02125]

constexpr const_reverse_iterator rend () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02125
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02125@rel:R25-11#6da2191a
Content hash
6da2191a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02125
Status: valid/unmigrated Version: rel:R25-11#8c33f37b Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02125@rel:R25-11#8c33f37b
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6da2191a2026-09-30
  • R24-11rel:R24-11#201552182026-10-14
  • R25-11rel:R25-11#8c33f37b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function rfind [SWS_CORE_02161]

constexpr size_type rfind (StringView s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5f33ccf3504d Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The function rfind of class ara::core::StringView ([SWS_CORE_02161]) serves to synchronously find the last occurrence of a substring specified by the parameter s (type StringView). The search position is controlled via the parameter pos of type size_type with the default value 0. As return value, the method returns the found position as size_type. The semantics follow the specification in [string.view] ([SWS_CORE_02161]). The function is defined as constexpr and is included via the header file #include "ara/core/string_view.h" ([SWS_CORE_02161]).

Error handling

The interface is declared as noexcept and specified as exception safe ([SWS_CORE_02161]). No exceptions are thrown and no errors are reported via DET or DEM instances. If the subsequence is not found, signaling is performed via the return value according to [string.view].

Concurrency and Limitations

Since rfind is declared as const, the call does not modify the object. Interpretation: Concurrent, purely read access by multiple threads to the same StringView instance should therefore be thread-safe without external synchronization. Question Q-95c78858675b63cf (open)

Interaction

Within ara::core::StringView, overloads exist for single characters ([SWS_CORE_02162]) as well as raw pointers with length specification ([SWS_CORE_02163]) or start position ([SWS_CORE_02164]), which are likewise designed as constexpr and noexcept. In addition, ara::core::BasicString provides corresponding rfind methods for passing StringView ([SWS_CORE_03316]) or string objects ([SWS_CORE_03325], [SWS_CORE_03326], [SWS_CORE_03327], [SWS_CORE_03328]).

This text was generated by an AI. All details are based exclusively on the specifications of AUTOSAR Release R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02161
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02161@rel:R25-11#ffac9f6a
Content hash
ffac9f6a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02161
Status: valid/unmigrated Version: rel:R25-11#6f3374cf Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02161@rel:R25-11#6f3374cf
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ffac9f6a2026-09-30
  • R24-11rel:R24-11#98774dfb2026-10-14
  • R25-11rel:R25-11#6f3374cf2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function rfind [SWS_CORE_02162]

constexpr size_type rfind (char c, size_type pos=0) const noexcept;

As per corresponding usage in [string.view]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 23fce4770293 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function rfind of class ara::core::StringView serves for backward searching of a single character within a string view [SWS_CORE_02162]. It is provided via header ara/core/string_view.h and follows the corresponding semantics in [string.view] [SWS_CORE_02162].

Regarding invocation context and parameters:

  • Parameters: The function takes the searched character c of type char as well as optionally the start position pos of type size_type, whose default value according to the signature is 0 [SWS_CORE_02162].
  • Return value: The result is returned as a position index of type size_type [SWS_CORE_02162].
  • Execution: The call executes synchronously and is specified as constexpr and const, so that evaluation can also take place at compile time [SWS_CORE_02162].

Regarding exception handling and concurrency, the method is classified as noexcept and “exception safe” [SWS_CORE_02162]. Specific DET or DEM error messages are not defined. Since it is a side-effect-free read operation on ara::core::StringView, the function should be callable concurrently by multiple threads for reading. Question Q-b8c95a8d62b4d144 (open)

In interaction with related interfaces, the function complements the overloads for searching partial views StringView [SWS_CORE_02161] as well as C string pointers with length restriction [SWS_CORE_02163] or default offset [SWS_CORE_02164]. In contrast to ara::core::BasicString::rfind for individual characters [SWS_CORE_03328], which is classified as not exception safe and uses pos = npos as the default, the StringView implementation guarantees complete freedom from exceptions [SWS_CORE_02162].

This text was automatically generated by an AI and is based exclusively on the payload of the specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02162@rel:R25-11#d63df688
Content hash
d63df688
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02162
Status: valid/unmigrated Version: rel:R25-11#138147bd Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02162@rel:R25-11#138147bd
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d63df6882026-09-30
  • R24-11rel:R24-11#c5eb2fbd2026-10-14
  • R25-11rel:R25-11#138147bd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function rfind [SWS_CORE_02163]

constexpr size_type rfind (const char *s, size_type pos, size_type n) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9ad4b80679fa Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Member function [SWS_CORE_02163] of class ara::core::StringView from header ara/core/string_view.h performs a synchronous backward search for a substring. It accepts a pointer s to the characters to be searched, a start position pos, and the character count n. The semantics correspond to the specification in [string.view], but deviate through the explicit specification as noexcept. Found positions are returned as a value of type size_type.

For error handling, the specification provides that the function is exception safe (exception safe) and throws no exceptions [SWS_CORE_02163]. Error reports via DET or DEM as well as special error codes do not exist in the payload.

Since the operation is qualified with constexpr and const, it can already be evaluated at compile time [SWS_CORE_02163]. Interpretation: Multiple concurrent read accesses to the same StringView instance are expected to be executable thread-safely, since the method call does not modify the state of the object. Question Q-6d5648c4365cf55d (open)

In the group of search functions, [SWS_CORE_02163] complements the related overloads for StringView objects [SWS_CORE_02161], single characters [SWS_CORE_02162], and pointers without length limitation [SWS_CORE_02164]. Compared to the pointer-based variant in ara::core::BasicString [SWS_CORE_03326], [SWS_CORE_02163] is characterized by guaranteed exception safety, whereas the string implementation is declared as not exception safe.

This usage note was generated by an AI based on the specification.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02163@rel:R25-11#7c539bb2
Content hash
7c539bb2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02163
Status: valid/unmigrated Version: rel:R25-11#ba9e060c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02163@rel:R25-11#ba9e060c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7c539bb22026-09-30
  • R24-11rel:R24-11#773b57db2026-10-14
  • R25-11rel:R25-11#ba9e060c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function rfind [SWS_CORE_02164]

constexpr size_type rfind (const char *s, size_type pos=0) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e69f05c5c49b Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous member function rfind of class ara::core::StringView is used to find the last occurrence of a character string within a string view according to [SWS_CORE_02164]. The function is declared via header ara/core/string_view.h. It expects a pointer const char *s to the sought subsequence and optionally the start index size_type pos = 0 for the reverse search. The result is returned as size_type. Since the function is defined as constexpr, the search can be executed at runtime or already at compile time.

Error Handling and Exception Safety

According to [SWS_CORE_02164], rfind is declared as noexcept and classified as exception safe (exception safe), which represents an explicit deviation from [string.view]. The throwing of C++ exceptions is thus excluded. Specific error codes as well as notifications to DEM or DET are not provided within the specification scope.

Concurrency and Limitations

Since this is a const method, the call causes no modifying side effects on the ara::core::StringView object ([SWS_CORE_02164]). Interpretation: Due to the lack of an additional length parameter, the implementation is likely to expect that s points to a valid, null-terminated string. Question Q-58b14518a8202703 (open)

Interaction

Within ara::core::StringView, rfind is grouped with overloads for StringView arguments ([SWS_CORE_02161]), single characters ([SWS_CORE_02162]), and pointers with length specification n ([SWS_CORE_02163]). While class ara::core::BasicString offers comparable search operations (such as [SWS_CORE_03316]), pointer overloads there are partly not exception safe ([SWS_CORE_03327]).

This usage note was generated automatically based on the specification for release R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02164@rel:R25-11#ddbe1f91
Content hash
ddbe1f91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02164
Status: valid/unmigrated Version: rel:R25-11#d63db259 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02164@rel:R25-11#d63db259
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ddbe1f912026-09-30
  • R24-11rel:R24-11#631953d62026-10-14
  • R25-11rel:R25-11#d63db2592026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function size [SWS_CORE_02128]

constexpr size_type size () const noexcept;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02128
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02128@rel:R25-11#12a9ac46
Content hash
12a9ac46
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02128
Status: valid/unmigrated Version: rel:R25-11#46ad2812 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02128@rel:R25-11#46ad2812
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#12a9ac462026-09-30
  • R24-11rel:R24-11#e864df132026-10-14
  • R25-11rel:R25-11#46ad28122026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function starts_with [SWS_CORE_02148]

constexpr bool starts_with (StringView sv) const noexcept;

As per corresponding usage in [string.view] in [15]

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: dbcec7b2a013 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function starts_with of class ara::core::StringView synchronously checks whether the character sequence starts with the specified prefix sv of type StringView ([SWS_CORE_02148]). It is declared in header ara/core/string_view.h. As a constexpr method, the call can be evaluated both at runtime and at compile time. The semantics correspond to the specification of [string.view] from the C++20 standard ([SWS_CORE_02148]).

Error handling

The function is declared as noexcept and specified as exception safe (“exception safe”) ([SWS_CORE_02148]). No exceptions are thrown and no error messages are issued via DET or DEM. If the character sequences do not match, false is regularly returned.

Concurrency and Limitations

The specification provides no explicit details regarding thread safety. Interpretation: As a stateless const method on an immutable view, concurrent read access from multiple threads is likely to be safe and reentrant. Question Q-24f102c9029c95ba (open) No special call contexts or ordering constraints are specified.

Interaction

For the flexible checking of prefixes, two further overloads are available alongside the variant for StringView: one for individual characters char ([SWS_CORE_02149]) and one for null-terminated strings const char* ([SWS_CORE_02150]).

This usage note was created by an AI and is based on the specifications of release R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02148
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02148@rel:R25-11#1b8596c1
Content hash
1b8596c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02148
Status: valid/unmigrated Version: rel:R25-11#4c6a7c7f Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02148@rel:R25-11#4c6a7c7f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1b8596c12026-09-30
  • R24-11rel:R24-11#253a8a532026-10-14
  • R25-11rel:R25-11#4c6a7c7f2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function starts_with [SWS_CORE_02149]

constexpr bool starts_with (char c) const noexcept;

As per corresponding usage in [string.view] in [15]

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: cbd4b1c50f57 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function starts_with of class ara::core::StringView checks synchronously whether the character sequence starts with the passed single character c [SWS_CORE_02149]. The declaration is available via header ara/core/string_view.h and follows the behavior of [string.view] from the C++ standard ISO/IEC 14882:2020 [SWS_CORE_02149].

Usage and Semantics

A single character of type char is passed as a parameter. The function returns a boolean value: true if the underlying string is not empty and its first character matches c, otherwise false. Due to the designation as constexpr, the comparison can already be evaluated at compile time [SWS_CORE_02149].

Error Handling and Exception Safety

The specification designates the function as exception-safe (exception safe) and explicitly as noexcept [SWS_CORE_02149]. No exceptions are raised and no error codes are reported via DET or DEM. For an empty character sequence, no error occurs; instead, the function regularly returns false.

Concurrency and Limitations

Interpretation: Since this is a side-effect-free check function declared as const, concurrent read calls on the same StringView instance should be thread-safe. Question Q-4b87a6891c7abb18 (open) There are no specific sequencing constraints.

Interaction

The function complements the two other overloads of starts_with in ara::core::StringView:

  • the check against another character view starts_with(StringView sv) [SWS_CORE_02148], as well as
  • the check against a null-terminated string starts_with(const char *str) [SWS_CORE_02150].

This note was generated automatically based on AUTOSAR R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02149
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02149@rel:R25-11#fa0c3b73
Content hash
fa0c3b73
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02149
Status: valid/unmigrated Version: rel:R25-11#28a30a0f Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02149@rel:R25-11#28a30a0f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#fa0c3b732026-09-30
  • R24-11rel:R24-11#ea854d512026-10-14
  • R25-11rel:R25-11#28a30a0f2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function starts_with [SWS_CORE_02150]

constexpr bool starts_with (const char *str) const noexcept;

As per corresponding usage in [string.view] in [15] 1. The function is noexcept

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6c99bbc1721d Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function starts_with of class ara::core::StringView checks whether the referenced string starts with the null-terminated C string str ([SWS_CORE_02150]). The check result is returned as bool ([SWS_CORE_02150]). The function is defined as constexpr and is available via the header file ara/core/string_view.h ([SWS_CORE_02150]).

Regarding error handling, the operation is declared as noexcept and specified as exception safe (exception safe) ([SWS_CORE_02150]). It accordingly throws no exceptions. Specific error codes, return values in case of error, or messages to DET or DEM are not provided for this function.

Because this is a const method, the call does not modify the StringView object ([SWS_CORE_02150]). Due to being marked as constexpr, evaluation can already take place at compile time ([SWS_CORE_02150]). Interpretation: The pointer str is likely to point to a valid character sequence and presumably must not be nullptr, as the semantics correspond to the C++ standard ISO/IEC 14882:2020 ([SWS_CORE_02150]). Question Q-2d35e65360268387 (open)

In interplay with other interfaces, this overload complements two further variants of starts_with: checking based on a StringView object ([SWS_CORE_02148]) and based on a single character of type char ([SWS_CORE_02149]). All three overloads possess the same semantics according to [string.view] of the C++ standard and are exception safe ([SWS_CORE_02148], [SWS_CORE_02149], [SWS_CORE_02150]).

This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02150
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02150@rel:R25-11#0a20559c
Content hash
0a20559c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02150
Status: valid/unmigrated Version: rel:R25-11#54439b97 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02150@rel:R25-11#54439b97
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0a20559c2026-09-30
  • R24-11rel:R24-11#5d9dc57c2026-10-14
  • R25-11rel:R25-11#54439b972026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function substr [SWS_CORE_02141]

constexpr StringView substr (size_type pos=0, size_type n=npos) const noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. if (pos > size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9aff7896b6f5 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function substr of class ara::core::StringView returns a subview of the underlying character range according to ISO C++ [string.view] [SWS_CORE_02141]. The function is provided via header #include "ara/core/string_view.h" and is declared as constexpr as well as noexcept [SWS_CORE_02141].

The parameters of the synchronous interface are defined as follows:

  • pos: Starting position within the character view of type size_type with the default value 0 [SWS_CORE_02141].
  • n: Maximum number of characters to take over of type size_type with the default value npos [SWS_CORE_02141].

As a return value, a new StringView object referencing the specified character range is created [SWS_CORE_02141].

In case of an error, the specification provides for a deliberate deviation from the C++ standard: If pos > size() applies, violation IsoStdOutOfRangeViolation is raised instead of std::out_of_range [SWS_CORE_02141]. Since substr is declared as exception safe and noexcept, triggering this violation is presumably implemented as a platform-wide violation handling mechanism and not as a thrown C++ exception [SWS_CORE_02141]. Question Q-1d2b8ad65de74e05 (open)

In interplay with ara::core::BasicString::substr [SWS_CORE_03345] from #include "ara/core/string.h", a functional difference appears: While BasicString::substr is classified as not exception safe and allocates a copied string, StringView::substr operates completely exception-safe and allocation-free [SWS_CORE_02141]. However, both functions handle out-of-range errors uniformly via IsoStdOutOfRangeViolation [SWS_CORE_02141] [SWS_CORE_03345].

This text was generated by an AI based on the AUTOSAR specification R25-11.

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02141
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02141@rel:R25-11#52917eba
Content hash
52917eba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02141
Status: valid/unmigrated Version: rel:R25-11#d8086c78 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02141@rel:R25-11#d8086c78
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#52917eba2026-09-30
  • R24-11rel:R24-11#692e60132026-10-14
  • R25-11rel:R25-11#d8086c782026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function swap [SWS_CORE_02139]

constexpr void swap (StringView &other) noexcept;

As per corresponding usage in [string.view] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe
Undefiniertes VerhaltenThe behavior of this function is undefined if: (n > size())

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02139
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02139@rel:R25-11#c3083712
Content hash
c3083712
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02139
Status: valid/unmigrated Version: rel:R25-11#036336f9 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02139@rel:R25-11#036336f9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c30837122026-09-30
  • R24-11rel:R24-11#9bbb741c2026-10-14
  • R25-11rel:R25-11#036336f92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ~StringView [SWS_CORE_02119] Upstream: RS_AP_00145

~StringView () noexcept=default;

[AUTOSAR defined] not present in ISO-14882. Destructor

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02119
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02119@rel:R25-11#2419cd1d
Content hash
2419cd1d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02119
Status: valid/unmigrated Version: rel:R25-11#f8fc337d Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02119@rel:R25-11#f8fc337d
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2419cd1d2026-09-30
  • R24-11rel:R24-11#0a6aa3182026-10-14
  • R25-11rel:R25-11#f8fc337d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

Type alias documentation

type alias const_iterator [SWS_CORE_02105]

using const_iterator = {<const-iterator-type>};

As per corresponding usage in [string.view] Implementation {<const-iterator-type>} shall be an implementation-defined type

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolconst_iterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02105@rel:R25-11#29abb209
Content hash
29abb209
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02105
Status: valid/unmigrated Version: rel:R25-11#57ae7667 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02105@rel:R25-11#57ae7667
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#29abb2092026-09-30
  • R24-11rel:R24-11#d0e8c2622026-10-14
  • R25-11rel:R25-11#57ae76672026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias const_pointer [SWS_CORE_02102]

using const_pointer = const value_type*;

As per corresponding usage in [string.view] except for the following deviations: 1. Pointer type shall be specialized to value_type

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolconst_pointer

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02102
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02102@rel:R25-11#946a93e7
Content hash
946a93e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02102
Status: valid/unmigrated Version: rel:R25-11#a03963eb Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02102@rel:R25-11#a03963eb
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#946a93e72026-09-30
  • R24-11rel:R24-11#32b2624c2026-10-14
  • R25-11rel:R25-11#a03963eb2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias const_reference [SWS_CORE_02104]

using const_reference = const value_type&;

As per corresponding usage in [string.view] except for the following deviations: 1. Reference type shall be specialized to value_type

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolconst_reference

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02104
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02104@rel:R25-11#eb936d1a
Content hash
eb936d1a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02104
Status: valid/unmigrated Version: rel:R25-11#72824c0c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02104@rel:R25-11#72824c0c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#eb936d1a2026-09-30
  • R24-11rel:R24-11#d77f02742026-10-14
  • R25-11rel:R25-11#72824c0c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias const_reverse_iterator [SWS_CORE_02107]

using const_reverse_iterator = std::reverse_iterator<const_iterator>;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolconst_reverse_iterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02107@rel:R25-11#b18572d7
Content hash
b18572d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02107
Status: valid/unmigrated Version: rel:R25-11#b02c8f44 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02107@rel:R25-11#b02c8f44
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b18572d72026-09-30
  • R24-11rel:R24-11#f82317ce2026-10-14
  • R25-11rel:R25-11#b02c8f442026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias difference_type [SWS_CORE_02110]

using difference_type = std::ptrdiff_t;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symboldifference_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02110
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02110@rel:R25-11#21f01c1c
Content hash
21f01c1c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02110
Status: valid/unmigrated Version: rel:R25-11#21b119d1 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02110@rel:R25-11#21b119d1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#21f01c1c2026-09-30
  • R24-11rel:R24-11#6fa74d6b2026-10-14
  • R25-11rel:R25-11#21b119d12026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias iterator [SWS_CORE_02106]

using iterator = const_iterator;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symboliterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02106
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02106@rel:R25-11#cae57632
Content hash
cae57632
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02106
Status: valid/unmigrated Version: rel:R25-11#a4d2487b Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02106@rel:R25-11#a4d2487b
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cae576322026-09-30
  • R24-11rel:R24-11#ebc3107a2026-10-14
  • R25-11rel:R25-11#a4d2487b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias pointer [SWS_CORE_02101]

using pointer = value_type*;

As per corresponding usage in [string.view] except for the following deviations: 1. Pointer type shall be specialized to value_type

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolpointer

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02101@rel:R25-11#8021c0d0
Content hash
8021c0d0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02101
Status: valid/unmigrated Version: rel:R25-11#d83b69d9 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02101@rel:R25-11#d83b69d9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#8021c0d02026-09-30
  • R24-11rel:R24-11#7d5c10e22026-10-14
  • R25-11rel:R25-11#d83b69d92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias reference [SWS_CORE_02103]

using reference = value_type&;

As per corresponding usage in [string.view] except for the following deviations: 1. Reference type shall be specialized to value_type

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolreference

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02103@rel:R25-11#08440c98
Content hash
08440c98
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02103
Status: valid/unmigrated Version: rel:R25-11#6295c4c4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02103@rel:R25-11#6295c4c4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#08440c982026-09-30
  • R24-11rel:R24-11#43b2a6bd2026-10-14
  • R25-11rel:R25-11#6295c4c42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias reverse_iterator [SWS_CORE_02108]

using reverse_iterator = const_reverse_iterator;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolreverse_iterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02108
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02108@rel:R25-11#c4d30933
Content hash
c4d30933
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02108
Status: valid/unmigrated Version: rel:R25-11#be77757e Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02108@rel:R25-11#be77757e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c4d309332026-09-30
  • R24-11rel:R24-11#b77ec8aa2026-10-14
  • R25-11rel:R25-11#be77757e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias size_type [SWS_CORE_02109]

using size_type = std::size_t;

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolsize_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02109
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02109@rel:R25-11#63eba7d6
Content hash
63eba7d6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02109
Status: valid/unmigrated Version: rel:R25-11#31265ae6 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02109@rel:R25-11#31265ae6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#63eba7d62026-09-30
  • R24-11rel:R24-11#6c191f7d2026-10-14
  • R25-11rel:R25-11#31265ae62026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias value_type [SWS_CORE_02100]

using value_type = char;

As per corresponding usage in [string.view] except for the following deviations: 1. Type shall be specialized to char

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolvalue_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02100
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02100@rel:R25-11#a24c5b76
Content hash
a24c5b76
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02100
Status: valid/unmigrated Version: rel:R25-11#722cbdec Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02100@rel:R25-11#722cbdec
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a24c5b762026-09-30
  • R24-11rel:R24-11#a2c0151c2026-10-14
  • R25-11rel:R25-11#722cbdec2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

Documentation of constants / variables

variable npos [SWS_CORE_02111]

static constexpr size_type npos = size_type(-1);

As per corresponding usage in [string.view]

Header-Datei#include "ara/core/string_view.h"
Scopeclass ara::core::StringView
Symbolnpos
Typsize_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_02111
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02111@rel:R25-11#065634ff
Content hash
065634ff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_02111
Status: valid/unmigrated Version: rel:R25-11#0d95b796 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_02111@rel:R25-11#0d95b796
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#065634ff2026-09-30
  • R24-11rel:R24-11#4180de922026-10-14
  • R25-11rel:R25-11#0d95b7962026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill