-
Incoming link from: 2. Installation of configured public artifacts1
1. Public C++ access to supported facilities PPL-LLR-000311 The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
wrap_string shall format the source byte prefix preceding its first NUL, leaving the source unchanged. That prefix length shall be less than std::numeric_limits<unsigned>::max() so its byte indices and the separator sentinel remain distinct. Preferred widths shall count source bytes, excluding inserted indentation, and shall guide separator selection rather than impose a maximum word length. The first output line shall use the first preferred width; subsequent lines shall use the continuation width.
For each remaining prefix, a NUL or newline at or before the preferred boundary shall terminate the line. Otherwise, the last comma strictly before the boundary shall take priority and remain on the preceding line; absent such a comma, the last start of a whitespace run at or before the boundary shall be the split. Without either separator, the word shall extend to NUL, whitespace, or a comma, retaining that comma. Whitespace classification shall use the unsigned byte in the current C character locale; newline shall retain its explicit line-separator role.
The selected prefix shall be copied unchanged. At a split, one whitespace separator and any immediately following ordinary spaces shall be discarded. A nonempty continuation prefix shall receive exactly indent_depth ordinary spaces. Output lines shall be joined by newlines only while more source bytes remain; a final consumed newline shall add no trailing newline. Zero widths, empty lines and unbroken words shall be admitted. Exceptions from constructing the result shall propagate without modifying the input.