mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 07:07:45 +01:00
doc: update broken links
This commit is contained in:
parent
86bacd75e7
commit
da347de530
1 changed files with 2 additions and 2 deletions
|
@ -857,12 +857,12 @@ Strings and formatting
|
||||||
buffer overflows, and surprises with `\0` characters. Also, some C string manipulations
|
buffer overflows, and surprises with `\0` characters. Also, some C string manipulations
|
||||||
tend to act differently depending on platform, or even the user locale.
|
tend to act differently depending on platform, or even the user locale.
|
||||||
|
|
||||||
- Use `ParseInt32`, `ParseInt64`, `ParseUInt32`, `ParseUInt64`, `ParseDouble` from `utilstrencodings.h` for number parsing.
|
- Use `ToIntegral` from [`strencodings.h`](/src/util/strencodings.h) for number parsing. In legacy code you might also find `ParseInt*` family of functions, `ParseDouble` or `LocaleIndependentAtoi`.
|
||||||
|
|
||||||
- *Rationale*: These functions do overflow checking and avoid pesky locale issues.
|
- *Rationale*: These functions do overflow checking and avoid pesky locale issues.
|
||||||
|
|
||||||
- Avoid using locale dependent functions if possible. You can use the provided
|
- Avoid using locale dependent functions if possible. You can use the provided
|
||||||
[`lint-locale-dependence.sh`](/test/lint/lint-locale-dependence.sh)
|
[`lint-locale-dependence.py`](/test/lint/lint-locale-dependence.py)
|
||||||
to check for accidental use of locale dependent functions.
|
to check for accidental use of locale dependent functions.
|
||||||
|
|
||||||
- *Rationale*: Unnecessary locale dependence can cause bugs that are very tricky to isolate and fix.
|
- *Rationale*: Unnecessary locale dependence can cause bugs that are very tricky to isolate and fix.
|
||||||
|
|
Loading…
Add table
Reference in a new issue