We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 241485f commit 4e54a63Copy full SHA for 4e54a63
api/include/opentelemetry/common/string_util.h
@@ -15,11 +15,11 @@ class StringUtil
15
public:
16
static nostd::string_view Trim(nostd::string_view str, size_t left, size_t right) noexcept
17
{
18
- while (left <= right && str[static_cast<std::size_t>(left)] == ' ')
+ while (left <= right && isspace(str[left]))
19
20
left++;
21
}
22
- while (left <= right && str[static_cast<std::size_t>(right)] == ' ')
+ while (left <= right && isspace(str[right]))
23
24
right--;
25
0 commit comments