Repository navigation
Modern String MoneyLayoutFromINegCurr
Paul Squires edited this page Oct 14, 2026
·
3 revisions
Home › String Library › String Library › MoneyLayoutFromINegCurr
Maps a Windows LOCALE_INEGCURR code (0..15) onto the POSIX (precedes, sepBySpace, signPosn) triple. Public so that all sixteen rows can be asserted individually -- a transcription slip here is a wrong string on somebody's machine and on nobody else's.
MoneyLayoutFromINegCurr( v, byref precedes, byref sepBySpace, byref signPosn )- The sixteen patterns:
($1.1)-$1.1$-1.1$1.1-(1.1$)-1.1$1.1-$1.1$--1.1 $-$ 1.11.1 $-$ 1.1-$ -1.11.1- $($ 1.1)(1.1 $). - Codes 12 and 13 are the only two needing
sepBySpace = 2, and they are why the model keeps three values there rather than a boolean. - Anything out of range falls back to 1, sign before all.
- Compiled on every target, though only Windows ever populates a snapshot from it.
dim as boolean pre
dim as int32 sep, posn
MoneyLayoutFromINegCurr( 12, pre, sep, posn )
print sep '' 2
print MoneyCompose( "1.1", "$", "-", pre, sep, posn ) '' $ -1.1Library: String Library
Category: String Library
Documented under: Money Formatting
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing