Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
libksieve
Commits
3c10472f
Commit
3c10472f
authored
Jul 22, 2022
by
Nicolas Fella
Browse files
Convert file to UTF-8
This is mandated by Qt6
parent
40e6204c
Pipeline
#207767
passed with stage
in 6 minutes and 27 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
autotests/lexertest.cpp
View file @
3c10472f
...
...
@@ -164,7 +164,7 @@ static const TestCase testcases[] = {
{
"Basic quoted string
\"
foo
\"
"
,
"
\"
foo
\"
"
,
{{
Lexer
::
QuotedString
,
"foo"
},
{
Lexer
::
None
,
nullptr
}},
Error
::
None
,
0
,
0
},
{
"Basic quoted string, UTF-8"
,
"
\"
foo
\xC3\xB1
"
"foo
\"
"
,
// foofoo
"foo
\"
"
,
// foo
ä
foo
{{
Lexer
::
QuotedString
,
"foo
\xC3\xB1
"
"foo"
},
...
...
@@ -223,14 +223,14 @@ static const TestCase testcases[] = {
// identifiers:
//
{
"Identifier, leading digits"
,
"0id"
,
{{
Lexer
::
Number
,
"0"
}},
Error
::
UnexpectedCharacter
,
0
,
1
},
{
"Identifier, embedded umlaut"
,
"idid"
,
{{
Lexer
::
Identifier
,
"id"
}},
Error
::
IllegalCharacter
,
0
,
2
},
{
"Identifier, embedded umlaut"
,
"id
ä
id"
,
{{
Lexer
::
Identifier
,
"id"
}},
Error
::
IllegalCharacter
,
0
,
2
},
//
// tags:
//
{
"Lone ':' (at end)"
,
":"
,
{{
Lexer
::
Tag
,
nullptr
}},
Error
::
UnexpectedCharacter
,
0
,
0
},
{
"Lone ':' (in stream)"
,
": "
,
{{
Lexer
::
Tag
,
nullptr
}},
Error
::
UnexpectedCharacter
,
0
,
1
},
{
"Tag, leading digits"
,
":0tag"
,
{{
Lexer
::
Tag
,
nullptr
}},
Error
::
NoLeadingDigits
,
0
,
1
},
{
"Tag, embedded umlaut"
,
":tagtag"
,
{{
Lexer
::
Tag
,
"tag"
}},
Error
::
IllegalCharacter
,
0
,
4
},
{
"Tag, embedded umlaut"
,
":tag
ä
tag"
,
{{
Lexer
::
Tag
,
"tag"
}},
Error
::
IllegalCharacter
,
0
,
4
},
//
// specials: (none)
// quoted string:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment