Zserio C++17 runtime library 1.3.0
Built for Zserio 2.20.0
Loading...
Searching...
No Matches
String.h
Go to the documentation of this file.
1#ifndef ZSERIO_STRING_H_INC
2#define ZSERIO_STRING_H_INC
3
4#include <string>
5#include <string_view>
6
7#include "zserio/BitSize.h"
8#include "zserio/Traits.h"
9
10namespace zserio
11{
12
16template <typename ALLOC>
17using BasicString = std::basic_string<char, std::char_traits<char>, ALLOC>;
18
23
24template <typename ALLOC>
26{
27 using type = std::string_view;
28};
29
30namespace detail
31{
32
33void validate(std::string_view stringValue, std::string_view fieldName);
34
35BitSize bitSizeOf(std::string_view stringValue, BitSize = 0);
36
37BitSize initializeOffsets(std::string_view stringValue, BitSize bitPosition);
38
39} // namespace detail
40
41} // namespace zserio
42
43#endif // ZSERIO_STRING_H_INC
std::basic_string< char, std::char_traits< char >, ALLOC > BasicString
Definition String.h:17