Skip to content

Commit 37d8037

Browse files
committed
[#697] Rename ServiceId::max_len() into ServiceId::max_number_of_characters
1 parent c5417d9 commit 37d8037

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

doc/release-notes/iceoryx2-unreleased.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@
221221
9. Renamed `AttributeSet::get_key_value_at()`
222222
into `AttributeSet::key_value()`
223223

224-
9. Renamed `AttributeSet::get_key_values()`
224+
10. Renamed `AttributeSet::get_key_values()`
225225
into `AttributeSet::iter_key_values()`
226226

227-
10. Renamed `ServiceId::max_len()`
227+
11. Renamed `ServiceId::max_len()`
228228
into `ServiceId::max_number_of_characters()`

iceoryx2-ffi/cxx/include/iox2/service_id.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace iox2 {
2121
class ServiceId {
2222
public:
2323
/// Returns the maximum string length of a [`ServiceId`]
24-
auto max_len() -> uint64_t;
24+
auto max_number_of_characters() -> uint64_t;
2525

2626
/// Returns the string value of the [`ServiceId`]
2727
auto c_str() const -> const char*;

iceoryx2-ffi/cxx/src/service_id.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "iox2/service_id.hpp"
1414

1515
namespace iox2 {
16-
auto ServiceId::max_len() -> uint64_t {
16+
auto ServiceId::max_number_of_characters() -> uint64_t {
1717
return IOX2_SERVICE_ID_LENGTH;
1818
}
1919

iceoryx2/src/service/service_id.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl ServiceId {
4040
}
4141

4242
/// Returns the maximum string length of a [`ServiceId`]
43-
pub const fn max_len() -> usize {
43+
pub const fn max_number_of_characters() -> usize {
4444
SERVICE_ID_CAPACITY
4545
}
4646

0 commit comments

Comments
 (0)