DEENESPTFRRUARHIKOZHNL

类 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

用户指南人工智能生成

提供针对连续字符序列的高效、非拥有型只读视图,无需进行内存分配。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7c1acb6c9194 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

提供针对连续字符序列的高效、非拥有型只读视图,无需进行内存分配。

ara::core::StringView 提供针对类型为 char 的连续字符序列的非拥有型只读视图([SWS_CORE_02100])。它允许进行高效的文本检查、搜索和子字符串生成,而无需动态内存分配([SWS_CORE_02141])。所有函数均声明为 noexcept;范围违例会触发 IsoStdOutOfRangeViolation,或者在不受保护的访问中引发未定义行为。

上下文

类 ara::core::StringView 在 AUTOSAR Adaptive Platform 中提供了来自 [string.view] 的标准类型 std::basic_string_view 的实现。根据 [SWS_CORE_02100],它固定特化为字符类型 char(value_type = char)。作为常量、非拥有型引用,它通过指针([SWS_CORE_02102])和长度规格([SWS_CORE_02109])封装了连续的字符存储。该类主要用作接口的高效传递参数,以便在不进行动态内存分配或复制操作的情况下以只读方式传输和检查文本数据。

对于只读访问,该类定义了符合标准的别名类型,如 const_pointer([SWS_CORE_02102])、const_reference([SWS_CORE_02104])、difference_type([SWS_CORE_02110])以及双向迭代器(符合 [SWS_CORE_02105] 和 [SWS_CORE_02106] 的 iterator、const_iterator,以及符合 [SWS_CORE_02107] 和 [SWS_CORE_02108] 的逆向迭代器)。无效位置通过静态常量 npos 指示([SWS_CORE_02111])。

生命周期

ara::core::StringView 的实例可创建为空视图([SWS_CORE_02112])、根据以空字符终止的 C 字符串([SWS_CORE_02113])创建,或根据带有显式长度规格的指针([SWS_CORE_02114])创建。所有构造函数均声明为 constexpr 和 noexcept。视图的生命周期与底层内存的生命周期严格解耦:StringView 不承担数据的所有权。析构函数指定为默认操作([SWS_CORE_02119]),且不执行内存释放。

复制构造函数([SWS_CORE_02115])和赋值运算符([SWS_CORE_02116])定义为 default。除 C++17 标准外,AUTOSAR 还显式将移动构造函数([SWS_CORE_02117])和移动赋值([SWS_CORE_02118])指定为 noexcept = default。通过 swap() 可以高效交换两个视图([SWS_CORE_02139])。在并发性方面,来自多个线程对同一实例的只读访问应该是线程安全的,因为所有读取操作均为 const;相比之下,修改性调用则需要外部同步。 问题 Q-6369ee16a0db48ee (未决)

使用路径

典型流程包括实例化、验证、模式搜索和提取子区域:

使用 ara::core::StringView 进行检查与子字符串构建应用quellView: StringViewsubView: StringViewStringView(str, len)Instanz erzeugtstarts_with(prefix)true / falsefind(delimiter, pos)Fundpositionsubstr(pos, count)Erzeugung TeilansichtsubView Instanzempty()false

时序图:无需内存分配即可进行检查和子字符串生成的典型调用时序。来源:[SWS_CORE_02114]、[SWS_CORE_02148]、[SWS_CORE_02158]、[SWS_CORE_02141]、[SWS_CORE_02131]

错误场景

该类的所有函数均声明为 noexcept。与 ISO C++ 标准的差异涉及范围违例的处理:在超出位置限制时不会抛出类型为 std::out_of_range 的异常,而是触发 IsoStdOutOfRangeViolation。这涉及:

某些函数具有前置条件,违反这些条件会导致未定义行为(Undefined Behavior):下标运算符 operator[](pos) 不检查边界,并在 pos >= size() 时导致未定义行为([SWS_CORE_02132])。同样,在空实例(empty() == true)上调用 front()([SWS_CORE_02134])或 back()([SWS_CORE_02135])也会导致未定义行为。如果在 remove_prefix(n)([SWS_CORE_02137])或 remove_suffix(n)([SWS_CORE_02138])中移除的字符数多于视图所包含的数量(n > size()),则行为同样是未定义的。此外,StringView 的存续时间超出所引用的字符存储生命周期的结束,会导致悬垂指针(Dangling Pointer);该类大概不会对指针有效性执行运行时检查。 问题 Q-410a994677a85c8c (未决)

本文档由 AI 创建并策划。所有陈述均由 AUTOSAR 规范 R25-11 证实。

成员图

类图

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

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

StringView 函数 5

≙ [string.view]

重载 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

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

~StringView () noexcept=default;

方法

at 函数

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 函数

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

constexpr const_reference back () const noexcept;
begin 函数

≙ [string.view]

constexpr const_iterator begin () const noexcept;
cbegin 函数

≙ [string.view]

constexpr const_iterator cbegin () const noexcept;
cend 函数

≙ [string.view]

constexpr const_iterator cend () const noexcept;
compare 函数 6

≙ [string.view]

重载 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 函数 3

in [16] ≙ [string.view]

重载 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 函数

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 函数

≙ [string.view]

constexpr const_reverse_iterator crbegin () const noexcept;
crend 函数

≙ [string.view]

constexpr const_reverse_iterator crend () const noexcept;
data 函数

≙ [string.view]

constexpr const_pointer data () const noexcept;
empty 函数

≙ [string.view]

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

≙ [string.view]

constexpr const_iterator end () const noexcept;
ends_with 函数 3

in [15] ≙ [string.view]

重载 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 函数 4

≙ [string.view]

重载 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]

重载 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 函数 4

≙ [string.view]

重载 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

≙ [string.view]

重载 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 函数 4

≙ [string.view]

重载 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 函数

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

constexpr const_reference front () const noexcept;
length 函数

≙ [string.view]

constexpr size_type length () const noexcept;
max_size 函数

≙ [string.view]

constexpr size_type max_size () const noexcept;
rbegin 函数

≙ [string.view]

constexpr const_reverse_iterator rbegin () const noexcept;

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

constexpr void remove_prefix (size_type n) noexcept;

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

constexpr void remove_suffix (size_type n) noexcept;
rend 函数

≙ [string.view]

constexpr const_reverse_iterator rend () const noexcept;
rfind 函数 4

≙ [string.view]

重载 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 函数

≙ [string.view]

constexpr size_type size () const noexcept;
starts_with 函数 3

in [15] ≙ [string.view]

重载 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 函数

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 函数

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

constexpr void swap (StringView &other) noexcept;

运算符

operator= 函数 2

≙ [string.view]

重载 = 2
constexpr StringView & operator= (const StringView &other) noexcept=default; SWS_CORE_02116
constexpr StringView & operator= (StringView &&other) noexcept=default; SWS_CORE_02118
operator[] 函数

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

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

类型别名

const_iterator 类型别名

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

using const_iterator = {<const-iterator-type>};
const_pointer 类型别名

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

using const_pointer = const value_type*;
const_reference 类型别名

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 类型别名

≙ [string.view]

using difference_type = std::ptrdiff_t;
iterator 类型别名

≙ [string.view]

using iterator = const_iterator;
pointer 类型别名

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

using pointer = value_type*;
reference 类型别名

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

reverse_iterator 类型别名

≙ [string.view]

using reverse_iterator = const_reverse_iterator;
size_type 类型别名

≙ [string.view]

using size_type = std::size_t;
value_type 类型别名

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

using value_type = char;

常量

npos 变量

≙ [string.view]

static constexpr size_type npos = size_type(-1);

方法文档

函数 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#de5408e2
Content hash
de5408e2
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

函数 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#73ba2a79
Content hash
73ba2a79
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

函数 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#210781e4
Content hash
210781e4
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

函数 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#6326e589
Content hash
6326e589
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

函数 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#fa74f78f
Content hash
fa74f78f
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b7697f8c19b0 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView 的成员函数 at 提供对单个字符的同步读取访问([SWS_CORE_02133])。它接受类型为 size_type 的索引 pos 作为参数,并返回对该位置字符的常量引用(const_reference)。该函数被指定为 constexpr 和 noexcept,因此调用也可以在编译时求值。

错误处理

与标准 [string.view] 中的行为不同,该函数在出错时不会抛出类型为 std::out_of_range 的异常([SWS_CORE_02133])。当满足条件 pos >= size() 时,将触发 IsoStdOutOfRangeViolation。该规范将该函数归类为异常安全(exception safe)。

并发性与限制

由于 at 被声明为 const,因此调用不会修改底层实例。调用方必须确保引用的字符串在 StringView 对象的整个生命周期内保持有效。当发生范围违规 IsoStdOutOfRangeViolation 时,执行可能会受控中止;为此可以通过 AddAbortHandler([SWS_CORE_00054])注册自定义中止例程(解释)。 问题 Q-0836f4dc6fa946a6 (未决)

相互作用

通过 IsoStdOutOfRangeViolation 捕获越界的概念在 ara::core 中的多个容器之间一致应用:

本文本由 AI 系统生成,仅基于来自 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#1db7fbb8
Content hash
1db7fbb8
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

函数 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#b747b55e
Content hash
b747b55e
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

函数 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#541fb0f6
Content hash
541fb0f6
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

函数 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#eb4b8a05
Content hash
eb4b8a05
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

函数 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#61983004
Content hash
61983004
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

函数 compare [SWS_CORE_02142]

constexpr int compare (StringView s) const noexcept;

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 2927f57a7caa 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件#include "ara/core/string_view.h"的类ara::core::StringView的成员函数compare用于对当前字符串视图与传入的StringView类型的实例s进行同步字典序比较[SWS_CORE_02142]。其行为遵循C++标准[string.view]中的相应用法[SWS_CORE_02142]。作为返回值,该函数提供一个int,用于映射字符序列的关系比较结果[SWS_CORE_02142]。

错误处理

该函数声明为noexcept并指定为exception safe [SWS_CORE_02142]。它不引发C++异常。未为此操作规划具体的错误码、AUTOSAR开发错误(DET)或向Diagnostic Event Manager(DEM)发送的通知[SWS_CORE_02142]。

并发性与边界条件

通过归类为const以及constexpr,该调用已可在编译时求值[SWS_CORE_02142]。Interpretation:由于该函数对不可变字符序列进行读访问,只要底层字符数据未被修改,从多个线程通过同一个StringView进行并发调用预计是线程安全的。 问题 Q-7489abeeb3fd7124 (未决)

相互作用

虽然ara::core中的基本类型如ErrorDomain [SWS_CORE_00137]或ErrorCode [SWS_CORE_00571]主要提供用于检查的二元相等运算符,但compare在StringView中提供了一个三值比较结果[SWS_CORE_02142]。

本使用说明是基于 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_02142
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02142@rel:R25-11#c6d99186
Content hash
c6d99186
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5252e249a5c2 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类ara::core::StringView的成员函数compare执行当前字符串视图的子范围与传入的StringView s之间的同步字典序比较[SWS_CORE_02143]。待比较的子字符串从索引pos1开始,最大长度为n1个字符。返回值是一个整数int,表示关系比较结果。由于该函数被声明为constexpr,因此求值已可在编译时进行[SWS_CORE_02143]。

错误处理

语义遵循ISO C++标准中[string.view]的规定,但定义了两处主要偏差[SWS_CORE_02143]:

  • 该函数指定为noexcept并视为异常安全(exception safe)[SWS_CORE_02143]。
  • 如果起始索引超过视图的长度(pos1 > size()),则不引发类型为std::out_of_range的标准异常,而是引发IsoStdOutOfRangeViolation [SWS_CORE_02143]。

并发性与边界条件

调用方必须预先确保pos1不超过size()的值,以避免发生IsoStdOutOfRangeViolation [SWS_CORE_02143]。由于compare被声明为const且不对实例进行任何修改,因此来自多个线程的并发读访问预计是非关键的(Interpretation)。 问题 Q-be4ec80ab2529ed3 (未决)

本使用说明基于 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#3dfcccca
Content hash
3dfcccca
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 84981befbff9 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类ara::core::StringView([SWS_CORE_02144],头文件#include "ara/core/string_view.h")的成员函数compare用于两个子字符串的同步字典序比较。基本行为对应于ISO C++标准中[string.view]的工作方式,但针对AUTOSAR Adaptive存在特定偏差[SWS_CORE_02144]。

传入参数确定两个序列中要比较的片段[SWS_CORE_02144]:

  • pos1和n1:调用实例内的起始索引和最大字符数。
  • s:要比较的类型为StringView的对象。
  • pos2和n2:传入对象s内的起始索引和最大字符数。

作为返回值,该函数提供一个整数值(int):当自身的子序列在字典序上较小时为负数,匹配时为零,较大时为正数[SWS_CORE_02144]。

关于错误处理,该实现与标准存在偏差:该方法被声明为noexcept并视为异常安全(exception safe)[SWS_CORE_02144]。如果起始位置之一位于有效范围之外(pos1 > size() || pos2 > s.size()),则不抛出std::out_of_range异常,而是引发IsoStdOutOfRangeViolation [SWS_CORE_02144]。

通过限定符constexpr和const,该函数已可在编译期间求值[SWS_CORE_02144]。由于不修改内部状态,因此对同一实例的并发读访问预计是线程安全的。 问题 Q-a93f872ee88becc9 (未决)

此文本由AI创建,用作AUTOSAR规范的补充文档。

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#2e5c0622
Content hash
2e5c0622
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 280fbff67867 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 compare(头文件 #include "ara/core/string_view.h")用于将当前字符串视图与以 null 结尾的 C 字符串进行同步的字典序比较 const char* s [SWS_CORE_02145]。由于该操作被指定为 constexpr,因此求值既可以在运行时进行,也可以在编译时表达式的上下文中进行。作为返回值,该函数提供类型为 int 的整数值,其符号类似于 [string.view] 反映比较结果:小于零的值表示该实例在字典序上位于 s 之前;零值表示相等;大于零的值指示该实例紧随 s 之后 [SWS_CORE_02145]。

在错误处理方面,AUTOSAR 规范明确偏离了 [string.view] 中的模板:该方法被声明为 noexcept 并具有 exception safe 特性 [SWS_CORE_02145]。因此保证调用不会引发任何 C++ 异常。未为此基础函数规定特定的错误代码、对 Development Error Tracer(DET)或 Diagnostic Event Manager(DEM)的反馈。

作为 const 修饰的方法,compare 不会改变 ara::core::StringView 实例的状态,并且可以安全地进行并发读取调用。在使用时应注意,指针 s 大概必须指向有效的字符序列,因为从 [string.view] 沿用的语义在传入空指针时可能会导致未定义行为 [SWS_CORE_02145]。 问题 Q-cff1a1f55603dbd4 (未决)

本文由 AI 基于 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_02145
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02145@rel:R25-11#28d80ae6
Content hash
28d80ae6
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c774270160f9 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类ara::core::StringView的方法compare支持将字符串视图的子范围与以空字符结尾的C字符串进行同步字典序比较s [SWS_CORE_02146]。传入起始索引pos1、最大长度n1以及指向待比较字符序列的指针s。类型为int的返回值类似于标准库反映关系排序结果:小于零、等于零或大于零的返回值表示字典序关系[SWS_CORE_02146]。

错误处理与边界条件

该操作被指定为noexcept和“exception safe”[SWS_CORE_02146]。与C++标准[string.view]的行为不同,具有pos1 > size()的无效起始索引不会引发std::out_of_range异常,而是导致IsoStdOutOfRangeViolation [SWS_CORE_02146]。该违例在AUTOSAR运行时上下文中预计被视为编程错误并强制平台直接中止,因为常规C++异常无法逃逸出noexcept边界。 问题 Q-d4ce6b496b80fdde (未决)此外,必须确保s指向有效的字符串,因为空指针可能会导致未定义行为。

并发性

由于compare被定义为const和constexpr,实例的状态保持不变[SWS_CORE_02146]。因此,对同一ara::core::StringView对象的并发读访问可以安全执行。

本使用说明基于 AUTOSAR 规范 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#b899ac77
Content hash
b899ac77
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1cc4e349e5f4 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件ara/core/string_view.h的类ara::core::StringView的成员函数compare执行同步字典序比较[SWS_CORE_02147]。此时,当前实例中从索引pos1开始、最多包含n1个字符的子序列将与外部C字符数组s的前n2个字符进行比较。整数返回值(int)遵循[string.view]的语义,并通过其符号指示自身的子范围在字典序上是小于、等于还是大于参考序列。作为constexpr和const方法,它不修改对象,并且已可在编译时求值[SWS_CORE_02147]。

错误处理与边界条件

关于错误处理和异常安全性,AUTOSAR 定义了相对于标准 [SWS_CORE_02147] 的两项强制性偏差:

  • 该成员函数被指定为 noexcept,并完全归类为 exception safe [SWS_CORE_02147]。
  • 如果起始位置超过实例长度(pos1 > size()),则不会抛出 std::out_of_range 异常,而是触发 IsoStdOutOfRangeViolation [SWS_CORE_02147]。

解释:由于 noexcept 保证与 IsoStdOutOfRangeViolation 相结合,越界可能无法通过传统的 C++ try-catch 块捕获,而是推测会导致立即中止或由平台进行错误处理。 问题 Q-67fb8eda4c594a06 (未决)

本使用说明由系统自动生成,完全基于 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#45d05b4f
Content hash
45d05b4f
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c871b0e95a94 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与调用上下文

类 ara::core::StringView 的成员函数 contains 用于同步检查字符视图是否包含给定的子字符串 [SWS_CORE_02154]。该函数在头文件 ara/core/string_view.h 中根据 C++ 标准工作草案 N4950([string.view])的语义进行定义 [SWS_CORE_02154]。作为参数,该方法按值接收 StringView 的另一个实例(sv),并直接返回类型为 bool 的布尔值:如果存在子序列则返回 true,否则返回 false [SWS_CORE_02154]。

通过指定为 constexpr,该调用既可以在运行时进行,也可以在编译期上下文的编译期间进行 [SWS_CORE_02154]。

错误处理与异常安全性

对于 contains,其行为被固定为 exception safe,且签名被显式标记为 noexcept [SWS_CORE_02154]。因此,该函数在任何情况下都不会抛出 C++ 异常,也不会通过 ara::core::Result 或 ara::core::ErrorCode 返回错误。此基础函数既不存在 DET 错误报告,也不存在 DEM 错误报告。

并发性与限制

作为常成员函数(const),contains 不会修改 StringView 实例的状态 [SWS_CORE_02154]。解释:只要被引用的内存区域没有被任何线程同时修改,在同一 StringView 实例或底层字符缓冲区上的并发只读调用应该是完全可重入且并发安全的。 问题 Q-80f1a9989a098913 (未决)除提供有效的 StringView 之外,不存在特殊的顺序条件或初始化要求。

本使用说明基于 AUTOSAR 规范自动创建。

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#b1544807
Content hash
b1544807
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b2baa55e3d18 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

成员函数 contains 同步检查 ara::core::StringView 中是否包含特定字符 c [SWS_CORE_02155]。该函数在头文件 ara/core/string_view.h 中声明,并遵循 C++ 标准草案 N4950 中 [string.view] 的语义 [SWS_CORE_02155]。它接收类型为 char 的单个字符,并返回类型为 bool 的布尔值,当且仅当在所引用的文本区域中找到该字符时,该值大概返回 true [SWS_CORE_02155]。 问题 Q-3293fccace7af3ab (未决)

关于错误处理,该操作被声明为 noexcept 并被指定为异常安全(exception safe)[SWS_CORE_02155]。不抛出任何异常,也不通过 DET、DEM 或返回类型指示错误代码;字符的不存在将通过布尔返回值正常报告。

由于该函数被标明为 constexpr 以及 const,因此它可以在编译时求值 [SWS_CORE_02155]。调用不会改变底层的 ara::core::StringView 对象,因此对同一实例的并行读取访问大概应当是并发安全的。 问题 Q-298dbc4d080853bc (未决)

在模块 core 的基础类型交互中,contains 用于对字符串视图进行直接的文本检查 [SWS_CORE_02155]。虽然诸如 ara::core::Result 之类的类型为包含的值或错误提供了自己的检查机制(例如 HasValue [SWS_CORE_00751] 或 CheckError [SWS_CORE_00765]),但 contains 的运行方式是轻量级的,无需分配或错误封装。

本使用说明基于 AUTOSAR 规范 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#08392d96
Content hash
08392d96
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b203260a22d2 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 contains 同步检查引用的字符串是否包含作为参数传入的字符序列 str [SWS_CORE_02156]。该函数通过头文件 ara/core/string_view.h 提供,并将检查结果作为类型为 bool 的返回值返回 [SWS_CORE_02156]。通过声明为 constexpr,该调用既可以在运行时执行,也可以在编译期表达式中执行 [SWS_CORE_02156]。

其功能语义遵循 C++ 标准工作草案 N4950 中 [string.view] 的规定,但存在一项强制性偏差:该函数在 AUTOSAR Adaptive 中使用标识符 noexcept 进行声明 [SWS_CORE_02156]。相应地,该操作被指定为异常安全(exception safe),从而保证在执行期间不会触发 C++ 异常 [SWS_CORE_02156]。未为此函数定义特定的 AUTOSAR 错误代码或向开发或诊断错误记录器发送的报告 [SWS_CORE_02156]。

作为常成员函数(const),contains 不会修改调用实例 [SWS_CORE_02156]。解释:对于参数 str,推测假定传入有效的以空字符结尾的字符串,因为接口使用了 const char *str 且未提供单独的长度或错误检查 [SWS_CORE_02156]。 问题 Q-a2d7cd456a72a792 (未决)

本使用说明基于 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#48aa00f4
Content hash
48aa00f4
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 63860f6d57ee 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView([SWS_CORE_02140])的同步成员函数 copy 将子字符串复制到提供的缓冲区中。通过头文件 #include "ara/core/string_view.h" 进行访问:

  • 参数:char *s 指向目标数组,n 决定要复制的最大字符数,pos 定义起始位置(默认值为 0)。
  • 返回值:size_type 类型的值,指示实际复制的字符数。
  • 语义:该函数同步工作,并以 ISO-C++ 规范 [string.view]([SWS_CORE_02140])为基准。

错误处理

在发生错误时,如果满足 pos > size(),则会触发 IsoStdOutOfRangeViolation([SWS_CORE_02140])。这与抛出 std::out_of_range 的标准 [string.view] 有所偏差。由于该接口声明为 noexcept,触发违规大概率会导致进程直接终止(推测:不会传递 C++ 异常)。 问题 Q-4ddbe4dfb002c41f (未决)

并发性与限制

该操作规范为 const 以及 noexcept,并视为异常安全([SWS_CORE_02140])。调用方必须确保目标数组 s 为至少 min(n, size() - pos) 个字符提供足够的内存,因为目标缓冲区的范围错误不会被捕获。

相互作用

与使用 value_type 并归类为非异常安全的 ara::core::BasicString::copy([SWS_CORE_03410])相比,StringView 中的变体提供了异常安全的 noexcept 保证([SWS_CORE_02140])。

本文本由 AI 生成,且仅基于 AUTOSAR 有效负载的规范。

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#26012b56
Content hash
26012b56
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

函数 crbegin [SWS_CORE_02126]

constexpr const_reverse_iterator crbegin () const noexcept;

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 231dd0a8e66b 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 crbegin 同步返回指向反向字符视图首个字符的常量反向迭代器(const_reverse_iterator)[SWS_CORE_02126]。该函数不接收参数,通过头文件 ara/core/string_view.h 声明,并遵循 [string.view] 的标准语义 [SWS_CORE_02126]。

关于错误处理,该操作被定义为 noexcept 并被指定为异常安全(exception safe)[SWS_CORE_02126]。由于该调用保证无错执行,因此既不返回错误代码,也不通过 DET 或 DEM 发送错误消息 [SWS_CORE_02126]。

得益于被指定为 constexpr 和 const,该函数也可以在编译时的常量表达式上下文中调用 [SWS_CORE_02126]。解释:在同一实例上并发调用 crbegin 应该是并发线程安全的,因为该操作不对对象进行任何修改。 问题 Q-ce8bc6d0753d1aa8 (未决)

该接口无缝融入 AUTOSAR Adaptive Core 的跨容器迭代器概念中。在 ara::core::Array [SWS_CORE_01260] 以及 ara::core::Span [SWS_CORE_01978] 中可以找到 crbegin 的等效 constexpr 实现。此外,诸如 ara::core::Vector [SWS_CORE_01342]、ara::core::Map [SWS_CORE_01450] 和 ara::core::BasicString [SWS_CORE_03049] 之类的容器也提供了相应的非 constexpr const_reverse_iterator 入口点。

本文字由 AI 系统基于 AUTOSAR 规范 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#6515ef8c
Content hash
6515ef8c
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

函数 crend [SWS_CORE_02127]

constexpr const_reverse_iterator crend () const noexcept;

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a2bec2dd4b77 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 crend 返回一个常量反向迭代器([SWS_CORE_02127])。该调用在来自头文件 ara/core/string_view.h 的现有实例上同步且无参数地进行。返回的 const_reverse_iterator 标记了反向迭代的逻辑终点;根据 C++ 参考 [string.view],它作为哨兵位置指向紧接在字符串首个字符之前的理论元素(解释:类似于 C++ 标准)。 问题 Q-5fd666f8d3eaf308 (未决)

错误处理与并发

该函数被声明为 noexcept,并被指定为异常安全(“exception safe”)([SWS_CORE_02127])。既不会引发异常,也不会返回错误代码或发出 DET/DEM 消息。由于具有 constexpr 限定,该迭代器已可在编译时生成。作为没有状态效应的纯 const 方法,在同一实例上并发读取调用在并发上应该是安全的(解释)。 问题 Q-207e2b9561f61d27 (未决)

相互作用

该接口遵循 ara::core 针对序列化数据结构的统一迭代概念。相关规范定义了类似的 crend 接口:

本文由 AI 创建,总结了 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#95de44e4
Content hash
95de44e4
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

函数 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#a17ac026
Content hash
a17ac026
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

函数 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#5c3630d3
Content hash
5c3630d3
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

函数 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#19a24a78
Content hash
19a24a78
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f73e35eb5e81 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

成员函数 ara::core::StringView::ends_with 同步检查所考量的字符序列是否以传入的子序列 sv 结尾 [SWS_CORE_02151]。它在头文件 ara/core/string_view.h 中声明,并遵循 ISO/IEC 14882:2020 [SWS_CORE_02151] 中 [string.view] 的标准化 C++ 语义。得益于标记为 constexpr,该比较已可在编译时求值。由于它是 const 方法,因此调用对象不会被修改。

错误处理与并发

规范为 ends_with 分配了属性 exception safe,并将其声明为 noexcept [SWS_CORE_02151]。因此,该函数不抛出异常,既不通过诸如 DET 或 DEM 等 AUTOSAR 错误通道也不通过特定错误代码报告故障。作为对不可变字符串视图的纯读操作,该函数应该具有可重入性,且在无需同步机制的情况下对同一实例的并发读访问是安全的。 问题 Q-821d4d0f216694ef (未决)

相互作用

该方法是类 ara::core::StringView 的一部分,并通过相关重载进行补充:除了针对另一个 StringView 对象的求值之外,还提供了针对单个字符 char [SWS_CORE_02152] 以及以 Null 结尾的 C 字符串 const char* [SWS_CORE_02153] 的检查变体,它们同样是异常安全的且可在编译时使用。

此使用说明是基于 AUTOSAR 有效载荷自动生成的。

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#8d60fdbe
Content hash
8d60fdbe
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 36112573f039 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView 的成员函数 ends_with 同步检查所引用的字符串是否以指定字符 c 结尾([SWS_CORE_02152])。它通过头文件 ara/core/string_view.h 声明,并遵循根据 ISO/IEC 14882:2020 的来自 [string.view] 的标准化工作机制([SWS_CORE_02152])。通过标记为 constexpr,求值既可以在运行时执行,也可以预先在编译范围内执行([SWS_CORE_02152])。

错误处理与运行时行为

该接口保证完全的异常安全性(“exception safe”),并带有说明符 noexcept([SWS_CORE_02152])。因此它绝不抛出异常,也不通过 DET 或 DEM 使用错误消息。当字符串为空时,检查始终返回布尔结果 false。

并发性与交互

由于 ends_with 被定义为无状态效应的纯 const 操作,来自多个线程对同一实例的并发读取访问应当是无顾虑的(推测)。 问题 Q-b3a5dccbd8ff638a (未决)除单个字符外,ara::core::StringView 还提供了另外两个用于结尾检查的重载:与另一个 StringView 进行比较([SWS_CORE_02151]),以及针对类型为 const char* 的以 null 结尾的 C 字符串进行检查([SWS_CORE_02153])。两种变体同样以同步、constexpr 且 noexcept 的方式实现([SWS_CORE_02151]、[SWS_CORE_02153])。

本文本由 AI 生成;所有专业陈述完全基于规范基础。

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#d42d4506
Content hash
d42d4506
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6d5cc865e3a5 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 ends_with 同步检查所考量的字符序列是否以特定字符串结尾 [SWS_CORE_02153]。该函数接受一个指针 const char* str 作为参数,并返回类型为 bool 的返回值 [SWS_CORE_02153]。通过声明为 constexpr,求值既可以在运行时进行,也可以在编译时进行 [SWS_CORE_02153]。其功能语义遵循标准 ISO/IEC 14882:2020 的 [string.view] 节的定义 [SWS_CORE_02153]。

关于错误处理,该函数被声明为 noexcept 并归类为异常安全(exception safe),因此不会引发 C++ 异常 [SWS_CORE_02153]。未为此辅助函数定义特定的 AUTOSAR 错误代码或向 DET 或 DEM 发送的错误报告。

解释:在调用时,参数 str 应该必须指向有效的以 null 结尾的字符串,因为未传递额外的长度参数 [SWS_CORE_02153]。 问题 Q-d6d076a1a2ab7dce (未决)由于该方法被限定为 const 且不修改内部状态,因此对同一实例的并发读访问是安全的。

该函数通过头文件 #include "ara/core/string_view.h" 在 ara::core::StringView 的作用域内提供 [SWS_CORE_02153]。它补充了 ends_with 的相关重载,这些重载接受 StringView 对象 [SWS_CORE_02151] 或单个字符 char [SWS_CORE_02152] 而非 C 字符串。

此使用说明由 AI 基于规范自动生成。

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#f104989b
Content hash
f104989b
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

函数 find [SWS_CORE_02157]

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

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a92b06c6fdd1 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 find 根据 [string.view] [SWS_CORE_02157] 中的行为,从起始位置 pos 开始同步搜索传入子字符串 s 的首次出现。该函数被定义为 constexpr 和 const,从而使其也可以在编译时以及在不可变实例上被调用 [SWS_CORE_02157]。

关于错误处理,该方法被声明为 noexcept 并归类为异常安全(exception safe)[SWS_CORE_02157];未提供特定错误代码以及 DET 或 DEM 消息。由于执行不会改变对象的状态,因此在没有额外同步的情况下,应该允许多个执行线程对同一 StringView 实例进行并发读取访问。 问题 Q-e27507133b5a4e20 (未决)

在 ara::core::StringView 内部,该函数由针对类型为 char 的单个字符 [SWS_CORE_02158] 以及 C 字符串 [SWS_CORE_02159]、[SWS_CORE_02160] 的其他搜索重载进行补充。在与其他容器的协同工作中,ara::core::BasicString 为 StringView 提供了类似的搜索功能 [SWS_CORE_03315],而 ara::core::Map 中的函数 find 则用于搜索键并返回迭代器 [SWS_CORE_01490]。

本使用说明基于 AUTOSAR 规范 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#50ca2396
Content hash
50ca2396
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

函数 find [SWS_CORE_02158]

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

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 25855dcf9257 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与参数

类 ara::core::StringView 的同步成员函数 find 从索引位置 pos 开始搜索字符 c 的首次出现([SWS_CORE_02158])。它通过头文件 #include "ara/core/string_view.h" 引入,并返回类型为 size_type 的找到位置的索引作为返回值。如果未找到该字符,根据对 [string.view] 的参考,应该返回值 npos。 问题 Q-60ea50d6f006004f (未决)

错误处理与并发

该函数使用 noexcept 声明,并被指定为异常安全(exception safe)([SWS_CORE_02158])。通过标记为 constexpr 和 const,它适用于编译时的常量表达式,并且不会修改底层对象。只要内存中引用的字符串保持不变,对同一实例的并发读取访问推测是可重入且线程安全的。 问题 (未决)

交互与替代方案

该方法补充了 ara::core::StringView 中 find 的其他重载,这些重载搜索子字符串([SWS_CORE_02157])或指针序列([SWS_CORE_02159]、[SWS_CORE_02160])。与 ara::core::BasicString([SWS_CORE_03324])中被归类为 not exception safe 的基于字符的搜索不同,此变体保证完全无异常。它还区别于 ara::core::Map([SWS_CORE_01490])中基于键的搜索。

本使用说明由自动生成,基于 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#36bfb6b2
Content hash
36bfb6b2
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0b317af9b1f1 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView([SWS_CORE_02159])的成员函数 find 用于在字符串视图内同步查找字符串。它通过头文件 ara/core/string_view.h 提供。该函数接收指向字符数组的指针 s、类型为 size_type 的起始位置 pos 以及要查找的字符数量 n,并将找到的位置作为 size_type 返回。解释:根据来自 [string.view] 的参考语义,s 应该指向具有至少 n 个字符的数组,并且在查找不成功时返回值 npos。 问题 Q-e7f54bb1b42a99d8 (未决)

错误处理与并发

该方法被声明为 noexcept 并被指定为 exception safe([SWS_CORE_02159])。因此,错误状态不会通过 C++ 异常来发出信号。由于该函数被定义为 const 和 constexpr,它不会修改实例,适用于编译时求值以及并发读取访问。

相互作用

在 ara::core::StringView 内部,该函数补充了其他查找重载:

与 ara::core::BasicString([SWS_CORE_03409])中的对应签名相比(该签名被声明为 not exception safe 且不保证 noexcept),StringView([SWS_CORE_02159])中的变体提供了严格的异常安全性且没有内存分配开销。

此使用说明由人工智能基于 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#f785e5fb
Content hash
f785e5fb
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f16e74818d29 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件 #include "ara/core/string_view.h" 的类 ara::core::StringView([SWS_CORE_02160])的同步成员函数 find 从起始位置 pos 开始查找所指定 C 字符串 s 的首次出现。其功能行为遵从 C++ 标准 [string.view],但通过明确标记为 noexcept 而有所不同([SWS_CORE_02160])。

错误处理

该函数被定义为 exception safe 并保证不引发任何异常([SWS_CORE_02160])。不存在特定的错误代码以及向 DET 或 DEM 发送的消息。解释:如果未包含所查找的字符串,则查找失败应该类似于 [string.view] 的标准行为通过返回值 npos 指示。 问题 Q-febde79f1c992c2a (未决)

并发性与边界条件

由于 find 被声明为 constexpr 和 const([SWS_CORE_02160]),该调用不会修改 StringView 对象的状态,并且可以在编译时进行求值。解释:跨多个线程的并发读取访问在无需额外同步措施的情况下应该是可重入且并发安全的。 问题 (未决)

相互作用

在 ara::core::StringView 内部,针对 StringView 参数([SWS_CORE_02157])、单个字符([SWS_CORE_02158])以及具有显式长度限制 n 的子字符串([SWS_CORE_02159])存在 find 的其他重载。与 ara::core::BasicString([SWS_CORE_03408]、[SWS_CORE_03409])中被归类为 not exception safe 的类似 C 字符串查找操作相反,ara::core::StringView 中的实现保证了完全的异常安全性([SWS_CORE_02160])。

本使用说明基于 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_02160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_02160@rel:R25-11#74a391d5
Content hash
74a391d5
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: fb4804b1c5ba 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView([SWS_CORE_02173])的成员函数 find_first_not_of 用于在字符串视图内同步搜索第一个不包含在传入的 StringView s 中的字符。作为第二个参数,可以可选地指定起始位置 pos(默认值为 pos=0)。该函数将找到的索引位置作为 size_type 返回。其行为遵循 [string.view] 中的相应语义。解释:如果未找到不相等的字符,该函数根据此标准语义应当返回值 npos。 问题 Q-8f55419868615e5a (未决)

错误处理与并发

该函数被声明为 noexcept,并被指定为异常安全(“exception safe”)([SWS_CORE_02173])。不抛出异常,且未定义通过 DET 或 DEM 的特定错误消息。通过限定符 const 和 constexpr,该调用可以在编译时无副作用地进行,或在未更改的对象上并行进行。

相互作用与重载

在 ara::core::StringView 内,该函数通过其他 noexcept 重载进行了补充:

对于 ara::core::BasicString 存在类似的搜索模式,其中包括 StringView([SWS_CORE_03319])和 BasicString([SWS_CORE_03337])。与 StringView 相比,那里用于指针和字符的重载([SWS_CORE_03338]、[SWS_CORE_03339]、[SWS_CORE_03340])被归类为非异常安全。

本文本由 AI 创建;它不能替代对所引用规范的学习。

实现者指南即将推出(复杂度 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#ad578283
Content hash
ad578283
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: d93e1265f673 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 find_first_not_of 同步确定字符序列中不等于传入字符 c 的第一个字符的位置 [SWS_CORE_02174]。搜索默认从视图开头或从可选的偏移量 pos 开始。通过引用标准 [string.view],该函数推测返回所找到字符的类型为 size_type 的从零开始的索引,若不存在不同的字符则返回值 npos。 问题 Q-9f3eeedf35e475e7 (未决)

在错误处理方面,该函数被声明为 noexcept 并被指定为异常安全(exception safe)[SWS_CORE_02174]。因此它不抛出异常,不使用 DET 或 DEM 报告,仅通过其返回值报告未找到字符。

作为 constexpr 和 const 方法,find_first_not_of 已经可以在编译时求值,并保证对底层字符数组的无状态、无副作用读访问。因此,在同一 StringView 实例上的并发调用是可重入的,且无需额外同步即是安全的。

该函数是 ara::core::StringView 中搜索操作族的一部分,并补充了用于通过 StringView [SWS_CORE_02173] 以及指针-长度对或以 Null 结尾的 C 字符串 [SWS_CORE_02175] [SWS_CORE_02176] 搜索不同子序列的重载。在 ara::core::BasicString [SWS_CORE_03340] 中存在可变字符串的功能等效项,与 StringView 相反,它被声明为非异常安全。

本文本由 AI 生成;所有说明均基于规范。

实现者指南即将推出(复杂度 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#245f5a98
Content hash
245f5a98
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0b62a700470a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CORE_02175],类 ara::core::StringView 的成员函数 find_first_not_of 用于同步查找字符串中未在给定字符序列中出现的首个字符。其行为在原则上对应于 [string.view] 中的使用,记录的偏差在于该函数被声明为 noexcept [SWS_CORE_02175]。解释:通过对 [string.view] 的引用,参数 s、pos 和 n 应当将从位置 pos 开始的搜索限制在数组 s 的前 n 个字符中 [SWS_CORE_02175]。 问题 Q-745f5bc9246c11a2 (未决)

使用与错误处理

该函数定义为 constexpr 和 const,通过头文件 #include "ara/core/string_view.h" 提供,并返回类型为 size_type 的索引 [SWS_CORE_02175]。规范将该方法归类为 exception safe [SWS_CORE_02175]。由于它被指定为 noexcept,因此不抛出异常;未定义错误代码或向 DET 或 DEM 发送的报告 [SWS_CORE_02175]。

交互与替代方案

在 ara::core::StringView 中,为不同的搜索模式提供了相关重载:

  • 根据 [SWS_CORE_02173] 通过另一个字符串视图 StringView 进行搜索,
  • 根据 [SWS_CORE_02174] 搜索与单个字符 c 的首次偏差,以及
  • 根据 [SWS_CORE_02176] 基于无显式长度说明的以 null 结尾的指针 const char *s 进行搜索。

与 ara::core::BasicString [SWS_CORE_03338] 中结构相似的签名相反(该签名被归类为 not exception safe 且不具备 noexcept),StringView 中的变体提供了完全的异常安全性 [SWS_CORE_02175]。

本使用说明基于规范自动生成。

实现者指南即将推出(复杂度 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#6071340e
Content hash
6071340e
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6459da1476d6 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

来自头文件 ara/core/string_view.h 的类 ara::core::StringView([SWS_CORE_02176])的成员函数 find_first_not_of 从起始位置 pos 开始同步搜索未在字符串 s 中出现的首个字符。其行为符合 [string.view] 中的定义,但由于明确标记为 noexcept 而有所偏差([SWS_CORE_02176])。解释:从对 [string.view] 的标准引用中应当可以得出,s 必须指向有效的以 null 结尾的字符数组,且在失败的情况下返回 npos。 问题 Q-aa48a331975274a1 (未决)

在错误处理方面,该函数被指定为异常安全(exception safe)([SWS_CORE_02176])。不抛出异常;在有效载荷中未为此函数定义通过诸如 DET 或 DEM 等 AUTOSAR 机制报告的运行时错误。

由于限定为 constexpr 和 const([SWS_CORE_02176]),搜索操作不会改变 StringView 对象的状态。它是可重入的,可以在任意线程中执行,也可以在编译时在常量表达式中执行。

在与相关接口的交互中,该函数补充了 ara::core::StringView 内的其他重载,即用于使用 StringView([SWS_CORE_02173])、单个字符 char([SWS_CORE_02174])或带长度限制的缓冲区 n([SWS_CORE_02175])进行搜索的重载。与 ara::core::BasicString([SWS_CORE_03338]、[SWS_CORE_03339])中被归类为 not exception safe 的基于指针的重载不同,StringView 上的此变体保证了完全的异常安全性。

此使用说明自动生成,并基于 AUTOSAR Adaptive R25-11 的规定。

实现者指南即将推出(复杂度 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#52e72a54
Content hash
52e72a54
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: ac2c1254417a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView([SWS_CORE_02165])的成员函数 find_first_of 从索引 pos 开始同步搜索字符序列中来自所传递字符串视图 s 的任意字符的首次出现。该方法以类型为 size_type 的索引返回找到的位置。

根据规范,该函数被声明为 noexcept,并被归类为异常安全(exception safe)([SWS_CORE_02165])。它不引发异常,也不向 DET 或 DEM 报告错误。解释:如果未找到匹配的字符或起始索引超出有效范围,类似于 [string.view] 的标准语义,结果应该对应于值 npos。 问题 Q-ad877979579b5bd1 (未决)

由于 find_first_of 被指定为 const,因此调用不会执行任何状态更改([SWS_CORE_02165])。对同一实例的并发读取访问无需额外同步即可进行。得益于标记为 constexpr,该搜索还可以在编译时求值。

在模块 core 中存在针对 ara::core::StringView 的其他重载,包括针对单个字符([SWS_CORE_02166])、带显式字符数量的指针([SWS_CORE_02167])以及以 null 结尾的字符串([SWS_CORE_02168])。在类 ara::core::BasicString 中,通过 [SWS_CORE_03317] 提供了针对 StringView 的类似重载;但与 StringView 不同的是,那里的基于指针的搜索函数被声明为非异常安全([SWS_CORE_03330])。

本文由 AI 生成,用于根据 AUTOSAR 规范提供参考。

实现者指南即将推出(复杂度 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#d4e9aa5a
Content hash
d4e9aa5a
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7942ee3cb4b2 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView 的成员函数 find_first_of 用于在所引用的字符串 [SWS_CORE_02166] 中同步搜索某个字符的首次出现。它可通过头文件 ara/core/string_view.h 使用,并接收所搜索的字符 c 以及可选的起始位置 pos(默认设置为 0)。该函数根据 [string.view] 中的行为返回类型为 size_type 的找到位置的索引 [SWS_CORE_02166]。作为 constexpr 方法,它既可以在运行时执行,也可以在编译期间执行。

错误处理

该函数被声明为 noexcept,并被明确归类为异常安全(“exception safe”)[SWS_CORE_02166]。不引发任何异常,并且规范未定义特定的错误代码,也未定义向开发错误跟踪(DET)或故障存储管理(DEM)发送的报告。

并发性与限制

作为常量成员函数(const),该调用不会修改 ara::core::StringView 的实例 [SWS_CORE_02166]。解释:因此,只要底层字符缓冲区保持不变,从多个线程对同一对象进行的并行读调用应当具有可重入性且并发安全。 问题 Q-b86dddc1a54a05e1 (未决)

相互作用

该函数是 ara::core::StringView 的搜索接口的一部分。除了搜索单个字符之外,还存在同样被指定为 noexcept 的类似重载,用于通过 StringView [SWS_CORE_02165] 以及指针表示 [SWS_CORE_02167]、[SWS_CORE_02168] 搜索子字符串。与之不同的是,类 ara::core::BasicString 声明了用于单字符 [SWS_CORE_03332] 和指针 [SWS_CORE_03330]、[SWS_CORE_03331] 的相关重载,但不带 noexcept,并将它们归类为非异常安全(“not exception safe”),而带有 BasicString [SWS_CORE_03329] 和 StringView [SWS_CORE_03317] 的字符串变体则保持异常安全。

此使用说明是根据规范要求自动生成的。

实现者指南即将推出(复杂度 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#cf5f484e
Content hash
cf5f484e
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4de0774d92b5 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

来自头文件 #include "ara/core/string_view.h" 的类 ara::core::StringView([SWS_CORE_02167])的成员函数 find_first_of 从位置 pos 开始同步搜索来自字符序列 s 的字符的首次出现。参数 n 限制了所传递指针中要考量的字符数量。该函数返回找到的位置作为 size_type;如果未找到字符,推测根据 [string.view] 返回值 npos。 问题 Q-eac57a47043e5b33 (未决)

以下规定适用于调用上下文和错误处理:

  • 异常安全性与编译时求值:该方法定义为 constexpr 和 const。作为与标准 [string.view] 的偏差,它被明确声明为 noexcept 并被指定为异常安全(“exception safe”)([SWS_CORE_02167])。不引发异常且不报告错误代码。
  • StringView 中的相关重载:此外还提供了针对无长度限制的字符串指针([SWS_CORE_02168])、针对 ara::core::StringView 对象([SWS_CORE_02165])以及针对单个字符([SWS_CORE_02166])的变体,它们同样是 noexcept。
  • 与 BasicString 的区别:与 ara::core::BasicString([SWS_CORE_03330])中对应的重载不同(该重载被列为非异常安全(“not exception safe”)且不带 noexcept),StringView 实现保证了完全的免于异常([SWS_CORE_02167])。

此使用说明自动生成,且完全基于针对 Adaptive R25-11 的 AUTOSAR 规范。

实现者指南即将推出(复杂度 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#989e5de1
Content hash
989e5de1
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 729a0ca675d4 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件 ara/core/string_view.h 的类 ara::core::StringView 的成员函数 find_first_of 从位置 pos 开始同步搜索字符视图,以查找来自字符串 s 中任一字符的首次出现 [SWS_CORE_02168]。它将相应索引作为 size_type 作为返回值返回。通过指定为 constexpr,此查找过程已可在编译时执行 [SWS_CORE_02168]。

错误处理与并发

该函数被声明为 noexcept 并被指定为异常安全(exception safe)[SWS_CORE_02168]。不存在特定的错误代码或向 DET 或 DEM 发送的消息。由于该方法不改变实例的状态(const),因此来自多个线程的并发读取访问是安全的。解释:由于签名未规定长度参数,调用方应该有义务向 s 传递有效的以 null 结尾的 C 字符串,以避免未定义行为。 问题 Q-6b692ff18063aef5 (未决)

相互作用

在 ara::core::StringView 内部,该函数补充了针对 StringView [SWS_CORE_02165]、单个字符 [SWS_CORE_02166] 以及具有显式长度限制的字符序列 n [SWS_CORE_02167] 的重载,这些重载均被定义为 constexpr 和 noexcept。与 ara::core::BasicString 中被归类为非异常安全(not exception safe)[SWS_CORE_03330]、[SWS_CORE_03331] 的类似指针查找函数相反,ara::core::StringView 中的实现保证了完全的无异常性 [SWS_CORE_02168]。

本文由 AI 创建并整理。

实现者指南即将推出(复杂度 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#87fe4b0a
Content hash
87fe4b0a
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 3dd613d4243d 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 find_last_not_of 用于在字符串内同步搜索最后一个未包含在传入字符序列 s 中的字符([SWS_CORE_02177])。其行为遵循 C++ 标准节 [string.view]([SWS_CORE_02177])。该函数将找到的索引位置作为 size_type 返回。

在执行和安全性方面,该方法具有以下特征:

  • 编译时与异常安全性:该函数被声明为 constexpr 和 noexcept,并被归类为“exception safe”([SWS_CORE_02177]);未为此 C++ 辅助类型规定错误码或错误消息(如 DET/DEM)。
  • 参数与搜索位置:在签名中存有起始索引 pos=0([SWS_CORE_02177])。解释:如果不显式指定 pos,搜索应当从位置 0 开始向后进行,因此对于跨整个字符串的搜索,调用方通常必须传入相应的结束位置。 问题 Q-35ba83bfea4c90c0 (未决)
  • 并发性:由于这是常量成员函数(const),因此对同一个 StringView 实例的并发读取访问是可能的,且无副作用。

在模块 core 中,ara::core::StringView 的 find_last_not_of 还针对单个字符 char([SWS_CORE_02178])以及指向字符串的指针 const char* 进行了重载([SWS_CORE_02179]、[SWS_CORE_02180])。在 ara::core::BasicString 上也存在针对 StringView 参数的类似搜索操作([SWS_CORE_03320])。

本文本由 AI 创建,基于 AUTOSAR 标准版本 R25-11。

实现者指南即将推出(复杂度 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#58c7e4fe
Content hash
58c7e4fe
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 392e437f1cb7 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的函数 find_last_not_of 在字符串视图中向后搜索最后一个与传入字符 c 不匹配的字符 [SWS_CORE_02178]。该函数被声明为 constexpr 以及 noexcept,并同步执行。它将找到的位置作为 size_type 返回;可选参数 pos 确定向后搜索的起始位置,其默认值为 0 [SWS_CORE_02178]。

在错误处理方面,该操作被指定为异常安全(exception safe);未为此元素规定特定的 AUTOSAR 错误码或向 DET 或 DEM 发送的消息 [SWS_CORE_02178]。由于它是不可变视图上的无状态 const 成员函数,因此对同一实例的并发读取访问应当是线程安全的(解释)。 问题 Q-6de8853198b2238d (未决)

在 ara::core::StringView 内,该函数补充了其他重载,这些重载允许基于另一个 StringView [SWS_CORE_02177] 或通过指向字符串的指针 [SWS_CORE_02179]、[SWS_CORE_02180] 进行搜索。类 ara::core::BasicString 也提供了对应的搜索函数,例如用于搜索单个字符 [SWS_CORE_03344] 或字符串视图 [SWS_CORE_03320],其中针对字符序列的部分函数未被标记为异常安全 [SWS_CORE_03342]。

本使用说明是根据 R25-11 的 AUTOSAR 规范自动生成的。

实现者指南即将推出(复杂度 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#d5c793ee
Content hash
d5c793ee
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 8368e2692a37 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView([SWS_CORE_02179])的成员函数 find_last_not_of 确定直到位置 pos 为止的字符视图内最后一个未在传入字符数组 s 的前 n 个字符中出现的字符的位置。其行为符合 C++ 标准参考 [string.view]([SWS_CORE_02179])。该函数同步工作,并返回 size_type 类型的索引;如果未找到不同的字符,按照惯例应当导致诸如 npos 之类的无效索引值。 问题 Q-ac62917eff214d0b (未决)

错误处理与并发

根据规范,该函数被声明为 noexcept,并被归类为异常安全(exception safe)([SWS_CORE_02179])。根据有效负载,不存在特定的错误码、DET 或 DEM 消息。作为 const 和 constexpr 函数,调用不会改变 StringView 对象的状态,适用于编译时求值以及对同一实例的并发读取访问。

相互作用与重载

该函数与 ara::core::StringView 的其他搜索函数相关联,其中包括用于搜索 StringView 对象([SWS_CORE_02177])、单个字符([SWS_CORE_02178])以及以空字符结尾的字符串([SWS_CORE_02180])的变体。与 ara::core::BasicString 中未被声明为异常安全的相应对应项([SWS_CORE_03342])不同,StringView 变体保证了完全的无异常特性([SWS_CORE_02179])。

本文本由 AI 创建。AUTOSAR 规范是主要参考资料。

实现者指南即将推出(复杂度 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#d3ef89a2
Content hash
d3ef89a2
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0106d9b9a697 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView 的成员函数 find_last_not_of 同步搜索字符视图中最后一个未在传入字符串 s 中出现的字符 [SWS_CORE_02180]。该函数被指定为 constexpr 和 const,并通过头文件 ara/core/string_view.h 提供 [SWS_CORE_02180]。该调用接收指向比较字符的指针 s 以及可选的起始位置 pos,并将找到的位置作为类型 size_type 返回 [SWS_CORE_02180]。

错误处理与异常安全性

该函数被声明为 noexcept,并被定义为异常安全(exception safe)[SWS_CORE_02180]。不返回特定错误码,也不抛出异常。与底层规范 [string.view] 相比,显式的差异在于保证的 noexcept 特性 [SWS_CORE_02180]。

与相关函数的相互作用

在 ara::core::StringView 内存在用于搜索的相关重载:

在相关类 ara::core::BasicString 中提供了类似的搜索函数 [SWS_CORE_03320],其中那里的指针重载有差异地被归类为非异常安全(not exception safe)[SWS_CORE_03343]。

本使用说明基于 AUTOSAR 规范 R25-11 自动生成。

实现者指南即将推出(复杂度 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#568316dd
Content hash
568316dd
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6bb48053b1d5 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

ara::core::StringView 的成员函数 find_last_of 根据 [string.view] [SWS_CORE_02169] 同步确定传入字符串视图 s 中的任一字符在当前字符串序列视图中的最后一次出现。作为参数,传入一个字符串视图 s 以及一个可选的起始位置 pos,根据签名,该起始位置的默认值被指定为 0 [SWS_CORE_02169]。返回值类型为 size_type,并提供最后一个匹配字符的索引 [SWS_CORE_02169]。

错误处理与并发

该方法被声明为 noexcept,并被指定为异常安全(exception safe);该函数不存在特定的错误码或向 DET 或 DEM 发送的消息 [SWS_CORE_02169]。由于限定为 constexpr,求值已可在编译时进行 [SWS_CORE_02169]。由于这是对不可变视图的纯读取操作,因此该函数对于并发读取访问应当无需同步开销即可保证安全。 问题 Q-eb7f34ac11d0aa6f (未决)

相互作用

在 ara::core::StringView 内还存在 find_last_of 的其他重载,它们接受单个字符 char [SWS_CORE_02170],或带长度信息的 C 字符串 [SWS_CORE_02171] 以及以空字符结尾的 C 字符串 [SWS_CORE_02172]。类似地,所属类 ara::core::BasicString 提供了相应的对应项,例如用于 StringView [SWS_CORE_03318] 和 BasicString [SWS_CORE_03333] 的重载,其中 pos 使用值 npos 作为默认值。

本文本由 AI 系统生成,仅基于 AUTOSAR R25-11 的规范数据。

实现者指南即将推出(复杂度 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#f7911604
Content hash
f7911604
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: daacb511fb62 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 find_last_of 用于同步查找单个字符 [SWS_CORE_02170] 的最后一次出现。它在头文件 <ara/core/string_view.h> 中声明,并被指定为 constexpr 以及 noexcept [SWS_CORE_02170]。

用法与语义

该方法在字符视图中搜索传入的字符 c,其中搜索从位置 pos 开始向后进行 [SWS_CORE_02170]。在函数签名中存有默认值 pos = 0 [SWS_CORE_02170]。根据对 [string.view] 的标准引用,该调用返回找到位置的从零开始的索引;解释:如果在搜索范围内未找到该字符,该方法应当返回 StringView::npos。 问题 Q-099400a9a1a73c09 (未决)

错误处理与并发

该操作被声明为 noexcept,并被视为完全异常安全(exception safe)[SWS_CORE_02170]。不存在特定的错误码、AUTOSAR DET 或 DEM 消息。由于这是对不可变视图的非修改性操作,因此它可以无副作用地用于并发读取场景或编译时。

与相关重载的相互作用

在 ara::core::StringView 内,该函数补充了 find_last_of 的其他重载,这些重载接受作为 StringView [SWS_CORE_02169] 或 C 字符串指针 [SWS_CORE_02171]、[SWS_CORE_02172] 的搜索模式。与相关类 ara::core::BasicString 相比,该类基于字符的变体 [SWS_CORE_03336] 被归类为非异常安全并使用 pos = npos 作为默认值,而此实现则保证严格的异常安全性。

本文本由 AI 创建,仅供参考。具有约束力的是 AUTOSAR 规范。

实现者指南即将推出(复杂度 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#d6310367
Content hash
d6310367
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 06784379044e 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView([SWS_CORE_02171])的成员函数 find_last_of 用于同步搜索指针 s 所指向的 n 个字符集合中任意字符的最后一次出现。搜索从位置 pos 开始向后进行。该函数通过头文件 #include "ara/core/string_view.h" 提供,并且由于声明为 constexpr,它也可以在编译时求值的上下文中执行。

错误处理与异常安全性

该函数被显式声明为 noexcept,并被指定为异常安全(exception safe)([SWS_CORE_02171])。在发生错误或未找到时不会抛出异常,也不会生成 DET 或 DEM 消息;其行为遵循 [string.view] 的语义。

限制与并发性

作为经 const 限定的方法,find_last_of 不会修改底层的 StringView 对象。解释:调用方大概必须确保指针 s 指向至少 n 个有效字符,因为规范未定义独立的缓冲区检查。 问题 Q-8d6241b8e7adc61d (未决)

相互作用

该方法补充了 ara::core::StringView 内 find_last_of 的其他重载,其中包括用于 StringView([SWS_CORE_02169])、单个字符([SWS_CORE_02170])和以空字符结尾的字符串([SWS_CORE_02172])的变体。与 ara::core::BasicString 中的重载([SWS_CORE_03334])不同(该重载被归类为非异常安全),StringView 实现保证了完全的 noexcept 语义。

本使用说明基于 AUTOSAR 规范 R25-11 自动生成。

实现者指南即将推出(复杂度 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#cccd2d7e
Content hash
cccd2d7e
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 8e0d3d1f38ec 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 find_last_of 用于查找指定字符序列 [SWS_CORE_02172] 中任意字符的最后一次出现。它在头文件 #include "ara/core/string_view.h" 中定义,并基于 C++ 标准 [string.view] 的语义,其特定差异在于该函数被指定为 noexcept [SWS_CORE_02172]。

用法与参数

该函数接受一个指向字符序列的指针 const char *s 以及一个用于开始向后搜索的可选起始位置 size_type pos = 0 [SWS_CORE_02172]。解释:参数 s 大概必须指向有效的、以空字符结尾的字符串,因为与重载 [SWS_CORE_02171] 不同,长度并未单独指定。 问题 Q-52f8ae523925f82b (未决)size_type 类型的返回值给出找到字符的索引,其中作为 constexpr 的调用也可以在编译时进行求值 [SWS_CORE_02172]。

错误处理与并发

该函数被指定为 noexcept 且异常安全(exception safe)[SWS_CORE_02172]。它不引发 C++ 异常,也不生成 DET 或 DEM 消息。作为常量成员函数(const),它不会修改底层的 StringView 实例 [SWS_CORE_02172]。

相互作用

在 ara::core::StringView 内提供了密切相关的重载,用于 StringView 对象 [SWS_CORE_02169]、单个字符 char [SWS_CORE_02170] 以及带有显式长度限制的指针 n [SWS_CORE_02171]。在 ara::core::BasicString([SWS_CORE_03318]、[SWS_CORE_03335])中可以找到类似的接口,其中那里的指针操作有差异地被声明为 not exception safe [SWS_CORE_03335]。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

实现者指南即将推出(复杂度 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#2a52b474
Content hash
2a52b474
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

函数 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#67427bb5
Content hash
67427bb5
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

函数 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#6c2f6a5a
Content hash
6c2f6a5a
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

函数 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#e39a1fab
Content hash
e39a1fab
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

函数 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#c7038fd5
Content hash
c7038fd5
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

函数 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#37f5510d
Content hash
37f5510d
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

函数 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#8850adac
Content hash
8850adac
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

函数 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#cdf783cf
Content hash
cdf783cf
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 718964f271f2 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类ara::core::StringView([SWS_CORE_02137])的成员函数remove_prefix通过头文件#include "ara/core/string_view.h"提供。它具有签名constexpr void remove_prefix (size_type n) noexcept;([SWS_CORE_02137])。该函数接收类型为size_type的参数n且不返回任何返回值。其语义符合[string.view]中的标准用法,但偏差在于该函数被声明为noexcept([SWS_CORE_02137])。作为Interpretation,得益于constexpr规范,该方法预计也可以在编译时求值。 问题 Q-52b1ae9faeef8180 (未决)

错误处理与限制

该函数被指定为异常安全(exception safe)且不抛出异常([SWS_CORE_02137])。未定义具体的错误码或通过DET或DEM的通知。但存在一项重要限制:当n > size()时,函数的行为未定义([SWS_CORE_02137])。调用方必须在执行前确保要移除的字符数不超过字符串视图的当前长度。标准中未描述关于可重入性或并发性的进一步要求。

本使用说明由 AI 基于规范生成。

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#f9c6c570
Content hash
f9c6c570
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 23bb3382cb4c 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类ara::core::StringView的成员函数remove_suffix通过头文件#include "ara/core/string_view.h"提供[SWS_CORE_02138]。它用于将视图引用的字符窗口在右边缘(后缀)处缩短指定的n个字符。该操作直接在调用实例上同步执行,无返回值(void)[SWS_CORE_02138]。得益于标记为constexpr,该函数也可以在编译时上下文中的转换阶段调用[SWS_CORE_02138]。

关于错误处理、异常安全性和边界条件,适用以下规范要求[SWS_CORE_02138]:

  • 异常安全性与标准偏差:语义原则上参考C++标准[string.view]中的相应用法,但作为显式偏差,该函数被声明为noexcept并被指定为异常安全(exception safe)[SWS_CORE_02138]。因此,它绝不抛出异常,也不报告错误码。
  • 参数无效时的未定义行为:如果传入的参数n大于视图的当前长度(n > size()),则函数的行为显式指定为未定义[SWS_CORE_02138]。
  • 调用方的责任:由于既未规划异常处理也未规划运行时检查,因此在进行调用之前,确保始终满足前置条件n <= size()完全由调用代码负责。

此使用说明为自动生成,且仅基于R25-11的AUTOSAR规范。

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#e5d86bc7
Content hash
e5d86bc7
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

函数 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#9a4ca094
Content hash
9a4ca094
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

函数 rfind [SWS_CORE_02161]

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

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5f33ccf3504d 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView([SWS_CORE_02161])的函数 rfind 用于同步查找由参数 s(类型 StringView)指定的子字符串的最后一次出现。通过类型为 size_type 且默认值为 0 的参数 pos 控制搜索位置。该方法将找到的位置作为 size_type 返回。其语义遵循 [string.view]([SWS_CORE_02161])中的规定。该函数定义为 constexpr,并通过头文件 #include "ara/core/string_view.h" 引入([SWS_CORE_02161])。

错误处理

该接口声明为 noexcept,并指定为 exception safe([SWS_CORE_02161])。不抛出任何异常,也不通过 DET 或 DEM 实例报告错误。如果未找到子序列,则根据 [string.view] 通过返回值进行信号通知。

并发性与限制

由于 rfind 声明为 const,因此调用不会修改对象。解释:因此,多个线程对同一 StringView 实例的并发只读访问在无需外部同步的情况下应当是线程安全的。 问题 Q-95c78858675b63cf (未决)

相互作用

在 ara::core::StringView 内部,存在针对单个字符([SWS_CORE_02162])以及带长度指定的原始指针([SWS_CORE_02163])或起始位置([SWS_CORE_02164])的重载,这些重载同样设计为 constexpr 和 noexcept。此外,ara::core::BasicString 还提供了相应的 rfind 方法,用于传递 StringView([SWS_CORE_03316])或字符串对象([SWS_CORE_03325]、[SWS_CORE_03326]、[SWS_CORE_03327]、[SWS_CORE_03328])。

本文字由 AI 生成。所有信息均完全基于 AUTOSAR 版本 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#016ca47c
Content hash
016ca47c
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

函数 rfind [SWS_CORE_02162]

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

As per corresponding usage in [string.view]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 23fce4770293 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 rfind 用于在字符串视图 [SWS_CORE_02162] 内反向搜索单个字符。它通过头文件 ara/core/string_view.h 提供,并遵循 [string.view] [SWS_CORE_02162] 中的相应语义。

关于调用上下文和参数,适用以下规则:

  • 参数:该函数接收类型为 char 的待搜索字符 c,以及可选的类型为 size_type 的起始位置 pos,根据签名其默认值为 0 [SWS_CORE_02162]。
  • 返回值:结果作为类型为 size_type 的位置索引返回 [SWS_CORE_02162]。
  • 执行:调用同步进行,并被指定为 constexpr 以及 const,以便求值也可以在编译时进行 [SWS_CORE_02162]。

关于异常处理和并发性,该方法被归类为 noexcept 且“exception safe”[SWS_CORE_02162]。未定义特定的 DET 或 DEM 错误消息。由于这是对 ara::core::StringView 的无副作用读取操作,因此该函数应该可以被多个线程并发读取调用。 问题 Q-b8c95a8d62b4d144 (未决)

在与相关接口配合使用时,该函数补充了用于搜索子视图 StringView [SWS_CORE_02161] 以及带长度限制的 C 字符串指针 [SWS_CORE_02163] 或默认偏移量 [SWS_CORE_02164] 的重载。与针对单个字符 [SWS_CORE_03328] 的 ara::core::BasicString::rfind(该函数被归类为非异常安全并使用 pos = npos 作为默认值)不同,StringView 实现保证完全无异常 [SWS_CORE_02162]。

本文由 AI 自动生成,仅基于规范的有效载荷。

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#9dd87ffa
Content hash
9dd87ffa
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9ad4b80679fa 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

头文件 ara/core/string_view.h 中类 ara::core::StringView 的成员函数 [SWS_CORE_02163] 执行对子字符串的同步反向搜索。它接受指向待搜索字符的指针 s、起始位置 pos 以及字符数量 n。其语义符合 [string.view] 中的规定,但通过明确指定为 noexcept 而有所偏离。找到的位置作为类型为 size_type 的值返回。

对于错误处理,规范规定该函数是异常安全的(exception safe)且不抛出异常 [SWS_CORE_02163]。有效负载中不存在通过 DET 或 DEM 发送的错误消息以及特殊错误代码。

由于该操作被限定为 constexpr 和 const,因此它可以在编译时进行求值 [SWS_CORE_02163]。解释:对同一 StringView 实例的多次并发读访问应该是线程安全的,因为该方法调用不会修改对象的状态。 问题 Q-6d5648c4365cf55d (未决)

在搜索函数组合中,[SWS_CORE_02163] 补充了针对 StringView 对象 [SWS_CORE_02161]、单个字符 [SWS_CORE_02162] 以及无长度限制的指针 [SWS_CORE_02164] 的相关重载。与 ara::core::BasicString [SWS_CORE_03326] 中基于指针的变体相比,[SWS_CORE_02163] 的特点是保证异常安全性,而字符串实现则被声明为 not exception safe。

本使用说明由 AI 基于规范生成。

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#d140f85a
Content hash
d140f85a
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: e69f05c5c49b 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView 的同步成员函数 rfind 用于根据 [SWS_CORE_02164] 查找字符串视图中某个字符串的最后一次出现。该函数通过头文件 ara/core/string_view.h 声明。它需要一个指向所搜索子序列的指针 const char *s,以及可选的用于反向搜索的起始索引 size_type pos = 0。结果作为 size_type 返回。由于该函数定义为 constexpr,搜索可以在运行时或直接在编译时执行。

错误处理与异常安全性

根据 [SWS_CORE_02164],rfind 被声明为 noexcept 并归类为异常安全(exception safe),这构成了相对 [string.view] 的明确偏差。因此排除了抛出 C++ 异常的可能性。规范范围内未提供特定错误码以及向 DEM 或 DET 的通知。

并发性与限制

由于这是一个 const 方法,该调用不会对 ara::core::StringView 对象产生任何修改性副作用([SWS_CORE_02164])。解释:由于缺乏额外的长度参数,实现可能会期望 s 指向有效的以空字符结尾的字符串。 问题 Q-58b14518a8202703 (未决)

相互作用

在 ara::core::StringView 内部,rfind 与针对 StringView 参数([SWS_CORE_02161])、单个字符([SWS_CORE_02162])以及带长度说明的指针 n([SWS_CORE_02163])的重载组合在一起。虽然类 ara::core::BasicString 提供了类似的搜索操作(如 [SWS_CORE_03316]),但那里的指针重载部分不是异常安全的([SWS_CORE_03327])。

本使用说明基于 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#49629f16
Content hash
49629f16
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

函数 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#cbaf54ce
Content hash
cbaf54ce
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: dbcec7b2a013 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::StringView 的成员函数 starts_with 同步检查字符串是否以类型为 StringView 的指定前缀 sv 开头([SWS_CORE_02148])。它在头文件 ara/core/string_view.h 中声明。作为 constexpr 方法,该调用既可以在运行时求值,也可以在编译时求值。其语义符合 C++20 标准([SWS_CORE_02148])中 [string.view] 的规范。

错误处理

该函数被声明为 noexcept 并被指定为异常安全(“exception safe”)([SWS_CORE_02148])。它不抛出任何异常,也不通过 DET 或 DEM 发送任何错误报告。如果字符序列不匹配,则正常返回 false。

并发性与限制

规范未对线程安全性作出明确说明。解释:作为不可变视图上的无状态 const 方法,来自多个线程的并发读访问应该是安全且可重入的。 问题 Q-24f102c9029c95ba (未决)未规定特殊的调用上下文或顺序条件。

相互作用

为了灵活地检查前缀,除了 StringView 的变体之外,还提供了另外两个重载:一个用于单个字符 char([SWS_CORE_02149]),另一个用于以 Null 结尾的字符串 const char*([SWS_CORE_02150])。

此使用说明由 AI 生成,并基于版本 R25-11 的规范。

实现者指南即将推出(复杂度 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#7602f58a
Content hash
7602f58a
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: cbd4b1c50f57 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 starts_with 同步检查字符序列是否以传入的单个字符 c 开头 [SWS_CORE_02149]。该声明通过头文件 ara/core/string_view.h 提供,并遵循来自 C++ 标准 ISO/IEC 14882:2020 的 [string.view] 行为 [SWS_CORE_02149]。

用法与语义

传入类型为 char 的单个字符作为参数。该函数返回一个布尔值:当底层字符串非空且其首字符与 c 一致时返回 true,否则返回 false。通过标记为 constexpr,比较操作可在编译时完成求值 [SWS_CORE_02149]。

错误处理与异常安全性

规范将该函数标明为异常安全(exception safe)并明确标为 noexcept [SWS_CORE_02149]。不触发异常,也不通过 DET 或 DEM 报告错误代码。当字符序列为空时不会发生错误,函数正常返回 false。

并发性与限制

推测:由于这是声明为 const 的无副作用检查函数,因此在同一 StringView 实例上的并发读取调用应当是线程安全的。 问题 Q-4b87a6891c7abb18 (未决)不存在特定的时序要求。

相互作用

该函数补充了 ara::core::StringView 中 starts_with 的另外两个重载:

  • 针对另一字符视图 starts_with(StringView sv) 的检查 [SWS_CORE_02148],以及
  • 针对以 null 结尾的字符串 starts_with(const char *str) 的检查 [SWS_CORE_02150]。

此提示基于 AUTOSAR R25-11 自动生成。

实现者指南即将推出(复杂度 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#ff2c4922
Content hash
ff2c4922
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6c99bbc1721d 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的同步成员函数 starts_with 检查所引用的字符串是否以以 null 结尾的 C 字符串 str 开头([SWS_CORE_02150])。检查结果作为 bool 返回([SWS_CORE_02150])。该函数定义为 constexpr,并可通过头文件 ara/core/string_view.h 使用([SWS_CORE_02150])。

在错误处理方面,该操作被声明为 noexcept 并被指定为异常安全(exception safe)([SWS_CORE_02150])。因此它不抛出异常。未为此函数定义特定的错误代码、出错时的返回值或发送至 DET 或 DEM 的报告。

由于它是 const 方法,因此该调用不会修改 StringView 对象([SWS_CORE_02150])。通过标记为 constexpr,该求值可以在编译时进行([SWS_CORE_02150])。解释:指针 str 应当指向有效字符串,且推测不得为 nullptr,因为其语义符合 C++ 标准 ISO/IEC 14882:2020([SWS_CORE_02150])。 问题 Q-2d35e65360268387 (未决)

在与其他接口的交互中,该重载补充了 starts_with 的另外两个变体:基于 StringView 对象的检查([SWS_CORE_02148])以及基于类型为 char 的单个字符的检查([SWS_CORE_02149])。根据 C++ 标准的 [string.view],所有这三个重载都具有相同的语义,并且是异常安全的([SWS_CORE_02148]、[SWS_CORE_02149]、[SWS_CORE_02150])。

本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。

实现者指南即将推出(复杂度 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#41a7fef4
Content hash
41a7fef4
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

函数 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 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9aff7896b6f5 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::StringView 的成员函数 substr 按照 ISO-C++ [string.view] [SWS_CORE_02141] 提供底层字符范围的部分视图。该函数通过头文件 #include "ara/core/string_view.h" 提供,并声明为 constexpr 以及 noexcept [SWS_CORE_02141]。

该同步接口的参数定义如下:

  • pos:字符视图内的起始位置,类型为 size_type,默认值为 0 [SWS_CORE_02141]。
  • n:要截取的最大字符数,类型为 size_type,默认值为 npos [SWS_CORE_02141]。

作为返回值,将生成一个新的 StringView 对象,该对象引用指定的字符范围 [SWS_CORE_02141]。

在错误情况下,规范规定了与 C++ 标准的针对性偏差:如果 pos > size() 成立,则触发违规 IsoStdOutOfRangeViolation 而非 std::out_of_range [SWS_CORE_02141]。由于 substr 声明为 exception safe 和 noexcept,触发该违规大概率是作为平台范围的违规处理机制实现,而非作为抛出的 C++ 异常实现 [SWS_CORE_02141]。 问题 Q-1d2b8ad65de74e05 (未决)

在与来自 #include "ara/core/string.h" 的 ara::core::BasicString::substr [SWS_CORE_03345] 协同配合中体现出功能差异:BasicString::substr 归类为 not exception safe 并分配复制的字符串,而 StringView::substr 则完全异常安全且免分配运行 [SWS_CORE_02141]。不过两个函数对越界情况的处理是一致的,均通过 IsoStdOutOfRangeViolation [SWS_CORE_02141] [SWS_CORE_03345]。

本文由 AI 基于 AUTOSAR 规范 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#f2f66aa8
Content hash
f2f66aa8
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

函数 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#1e336cf1
Content hash
1e336cf1
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

函数 ~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#65d9276c
Content hash
65d9276c
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

类型别名文档

类型别名 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#548d90b0
Content hash
548d90b0
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

类型别名 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#19003e27
Content hash
19003e27
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

类型别名 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#c909a410
Content hash
c909a410
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

类型别名 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#64c7a837
Content hash
64c7a837
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

类型别名 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#ed118afb
Content hash
ed118afb
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

类型别名 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#9f4cbd3e
Content hash
9f4cbd3e
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

类型别名 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#67c67492
Content hash
67c67492
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

类型别名 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#ea6cdaf7
Content hash
ea6cdaf7
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

类型别名 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#f5758ce3
Content hash
f5758ce3
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

类型别名 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#2ac17e36
Content hash
2ac17e36
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

类型别名 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#1a214d08
Content hash
1a214d08
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

常量 / 变量文档

变量 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#ac22c95a
Content hash
ac22c95a
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