Skip to content

Commit bcacc92

Browse files
authored
Fix: make random bnode id generator xml compliant (#412)
1 parent addae13 commit bcacc92

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/rdf4cpp/bnode_mngt/reference_backends/generator/RandomIdGenerator.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ namespace rdf4cpp::bnode_mngt {
77

88
namespace generator_detail {
99

10-
static constexpr std::array<char, 36> bnode_id_valid_chars{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
11-
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
12-
'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6',
13-
'7', '8', '9'};
10+
static constexpr std::array bnode_id_valid_chars{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
11+
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
12+
'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
13+
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
14+
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
1415

1516
static constexpr size_t generated_id_size = 32;
1617

0 commit comments

Comments
 (0)