You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CPP implementation: does not reference a required separator character #443
// Returns an Open Location Code with code_length significant digits. The string
// returned may be one character longer if it includes a separator character
// for formatting.
This is underspecified. Every plus code will have a separator character. CITATION NEEDED. Therefore a better wording would be to say:
// Returns an Open Location Code with code_length significant digits. The string
// returned will be one character longer because it includes a separator character
// for formatting.
Opened #769 to correct the C++ Encode API comment: the separator is always present after eight characters, and code lengths below eight significant digits are zero-padded to a nine-character string. The comment also explains how requested digit counts are normalized.
Checked the documented behavior with a native C++ harness across all valid lengths and the normalization boundaries; the existing C++ suite passed 1,074 tests (excluding its benchmark). This is a documentation correction to existing behavior.
Activity
fulldecent commentedon Apr 25, 2021
Recommended tag: implementation
fulldecent commentedon May 24, 2024
I realize this wording is CPP is based on a older and outdated understanding of OLC that used to be here. So this is issue should still be fixed.
vinsymoyya commentedon Nov 14, 2026
Opened #769 to correct the C++
EncodeAPI comment: the separator is always present after eight characters, and code lengths below eight significant digits are zero-padded to a nine-character string. The comment also explains how requested digit counts are normalized.Checked the documented behavior with a native C++ harness across all valid lengths and the normalization boundaries; the existing C++ suite passed 1,074 tests (excluding its benchmark). This is a documentation correction to existing behavior.