JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
Integer pair sets are used to store pairs of integers, which in turn are used to represent substrings in a source file.
Language Module Support: Internal representation for source files (including substring representation via integer pair sets) is available for C/C++, binary, C#, and Java analyses.
Each pair (a, b) in an integer pair set represents a substring in a source file as follows:
| integer | represents | constraints |
|---|---|---|
| a (first) | offset from the beginning of the file (0 origin) | must be between 0 and 224-1 |
| b (second) | one less than the length of the substring | must be non-negative |
The implementation may split a given pair into two or more pairs that represent the same interval.
Integer pair sets are used to represent the set of locations in a source file (optionally) associated with each point.
By API implementation:
| Language | Integer Pair Set Functionality and Types Provided By | Integer Pair Type | Integer Pair Set Type |
|---|---|---|---|
| C++ | class int_pair_set | typedef int_pair | class int_pair_set |
| Python | class int_pair_set | tuple (int, int) | class int_pair_set |
| C | Header cs_int_pair_set.h | typedef cs_int_pair | typedef cs_int_pair_set, typedef cs_const_int_pair_set |
See also: