mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Add documentation for parseHex
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
import cpp
|
import cpp
|
||||||
import semmle.code.cpp.commons.unix.Constants as UnixConstants
|
import semmle.code.cpp.commons.unix.Constants as UnixConstants
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the number corresponding to the contents of `input` in base-16.
|
||||||
|
* Note: the first two characters of `input` must be `0x`. For example:
|
||||||
|
* `parseHex("0x123abc") = 1194684`.
|
||||||
|
*/
|
||||||
bindingset[input]
|
bindingset[input]
|
||||||
int parseHex(string input) {
|
int parseHex(string input) {
|
||||||
exists(string lowerCaseInput | lowerCaseInput = input.toLowerCase() |
|
exists(string lowerCaseInput | lowerCaseInput = input.toLowerCase() |
|
||||||
|
|||||||
Reference in New Issue
Block a user