File tree Expand file tree Collapse file tree 7 files changed +29
-10
lines changed
include/opentelemetry/sdk/common Expand file tree Collapse file tree 7 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#pragma once
5
5
6
+ #include < cstddef>
6
7
#include < cstdint>
7
- #include < initializer_list>
8
- #include < map>
9
8
#include < string>
10
- #include < unordered_map>
11
- #include < utility>
12
9
#include < vector>
13
10
14
11
#include " opentelemetry/common/attribute_value.h"
15
12
#include " opentelemetry/common/key_value_iterable.h"
13
+ #include " opentelemetry/nostd/function_ref.h"
14
+ #include " opentelemetry/nostd/span.h"
16
15
#include " opentelemetry/nostd/string_view.h"
17
- #include " opentelemetry/nostd/variant.h"
18
16
#include " opentelemetry/sdk/common/attribute_utils.h"
19
17
#include " opentelemetry/version.h"
20
18
Original file line number Diff line number Diff line change 3
3
4
4
#include " opentelemetry/sdk/common/attribute_validity.h"
5
5
6
+ #include < map>
7
+ #include < ostream>
8
+ #include < unordered_map>
6
9
#include < unordered_set>
10
+ #include < utility>
7
11
12
+ #include " opentelemetry/nostd/variant.h"
8
13
#include " opentelemetry/sdk/common/global_log_handler.h"
9
14
#include " opentelemetry/version.h"
10
15
Original file line number Diff line number Diff line change 1
- // Copyright 2023 Google LLC
1
+ // Copyright The OpenTelemetry Authors
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
//
3
4
// Use of this source code is governed by an MIT-style
4
5
// license that can be found in the LICENSE file or at
17
18
*/
18
19
#include " src/common/internal/utf8_range/utf8_range.h"
19
20
20
- #include < stddef.h>
21
21
#include < stdint.h>
22
22
#include < string.h>
23
23
24
+ #include " opentelemetry/version.h"
25
+
24
26
#if defined(__GNUC__)
25
27
# define FORCE_INLINE_ATTR __attribute__ ((always_inline)) inline
26
28
#elif defined(_MSC_VER)
@@ -42,14 +44,19 @@ static FORCE_INLINE_ATTR uint64_t utf8_range_UnalignedLoad64(const void *p)
42
44
return t;
43
45
}
44
46
45
- static FORCE_INLINE_ATTR int utf8_range_AsciiIsAscii (unsigned char c)
47
+ static FORCE_INLINE_ATTR bool utf8_range_AsciiIsAscii (unsigned char c)
46
48
{
47
49
return c < 128 ;
48
50
}
49
51
50
- static FORCE_INLINE_ATTR int utf8_range_IsTrailByteOk (const char c)
52
+ static FORCE_INLINE_ATTR bool utf8_range_IsTrailByteOk (const char c)
53
+ {
54
+ return static_cast <int8_t >(c) <= static_cast <int8_t >(0xBF );
55
+ }
56
+
57
+ static FORCE_INLINE_ATTR bool utf8_range_IsTrailByteOk (const unsigned char c)
51
58
{
52
- return ( int8_t )(c) <= ( int8_t )( 0xBF );
59
+ return utf8_range_IsTrailByteOk ( static_cast < const char >(c) );
53
60
}
54
61
55
62
/* If return_position is false then it returns 1 if |data| is a valid utf8
Original file line number Diff line number Diff line change
1
+ // Copyright The OpenTelemetry Authors
2
+ // SPDX-License-Identifier: Apache-2.0
1
3
2
4
#pragma once
3
5
Original file line number Diff line number Diff line change
1
+ // Copyright The OpenTelemetry Authors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
1
4
#include < arm_neon.h>
2
5
3
6
/* This code is almost the same as SSE implementation, please reference
Original file line number Diff line number Diff line change
1
+ // Copyright The OpenTelemetry Authors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
1
4
#include < emmintrin.h>
2
5
#include < smmintrin.h>
3
6
#include < tmmintrin.h>
Original file line number Diff line number Diff line change 1
1
// Copyright The OpenTelemetry Authors
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
+ #include < ostream>
4
5
#include < string>
5
6
#include < unordered_map>
6
7
#include < utility>
You can’t perform that action at this time.
0 commit comments