Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
dd5ad6e7
Commit
dd5ad6e7
authored
Dec 02, 2021
by
Senthil Prabakaran
Committed by
Mouse
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Lint issues
parent
ed774b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
skeletons/OCTET_STRING_jer.c
skeletons/OCTET_STRING_jer.c
+0
-40
No files found.
skeletons/OCTET_STRING_jer.c
View file @
dd5ad6e7
...
...
@@ -148,44 +148,4 @@ OCTET_STRING_encode_jer_utf8(const asn_TYPE_descriptor_t *td, const void *sptr,
er
.
encoded
=
encoded_len
;
ASN__ENCODED_OK
(
er
);
}
/*
* Something like strtod(), but with stricter rules.
*/
static
int
OS__strtoent
(
int
base
,
const
char
*
buf
,
const
char
*
end
,
int32_t
*
ret_value
)
{
const
int32_t
last_unicode_codepoint
=
0x10ffff
;
int32_t
val
=
0
;
const
char
*
p
;
for
(
p
=
buf
;
p
<
end
;
p
++
)
{
int
ch
=
*
p
;
switch
(
ch
)
{
case
0x30
:
case
0x31
:
case
0x32
:
case
0x33
:
case
0x34
:
/*01234*/
case
0x35
:
case
0x36
:
case
0x37
:
case
0x38
:
case
0x39
:
/*56789*/
val
=
val
*
base
+
(
ch
-
0x30
);
break
;
case
0x41
:
case
0x42
:
case
0x43
:
/* ABC */
case
0x44
:
case
0x45
:
case
0x46
:
/* DEF */
val
=
val
*
base
+
(
ch
-
0x41
+
10
);
break
;
case
0x61
:
case
0x62
:
case
0x63
:
/* abc */
case
0x64
:
case
0x65
:
case
0x66
:
/* def */
val
=
val
*
base
+
(
ch
-
0x61
+
10
);
break
;
case
0x3b
:
/* ';' */
*
ret_value
=
val
;
return
(
p
-
buf
)
+
1
;
default:
return
-
1
;
/* Character set error */
}
/* Value exceeds the Unicode range. */
if
(
val
>
last_unicode_codepoint
)
{
return
-
1
;
}
}
*
ret_value
=
-
1
;
return
(
p
-
buf
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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