The cl-setlocale Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-setlocale Reference Manual

This is the cl-setlocale Reference Manual, version 0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Wed Nov 04 12:45:10 2020 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

cl-setlocale

Build Status

This library is a tiny wrapper around setlocale(3) and can be used in conjunction with other FFI wrappers like cl-charms.

Examples:

* (asdf:load-system :cl-setlocale)
T
* (cl-setlocale:setlocale :lc-all "")
T
"ru_RU.UTF-8"
* (cl-setlocale:setlocale :lc-time "C")
T
"C"

Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-setlocale

Author

Vasily Postnicov <shamaz.mazum@gmail.com>

License

2-clause BSD

Description

FFI to setlocale and ncurses locale helper

Version

0.1

Defsystem Dependency

cffi-grovel

Dependency

cffi

Source

cl-setlocale.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 cl-setlocale.asd

Location

cl-setlocale.asd

Systems

cl-setlocale (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 cl-setlocale/src/package.lisp

Parent

cl-setlocale (system)

Location

src/package.lisp

Packages

cl-setlocale


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 cl-setlocale/src/constants.lisp

Dependency

src/package.lisp (file)

Parent

cl-setlocale (system)

Location

src/constants.lisp


Previous: , Up: Lisp files   [Contents][Index]

3.1.4 cl-setlocale/src/setlocale.lisp

Dependency

src/constants.lisp (file)

Parent

cl-setlocale (system)

Location

src/setlocale.lisp

Exported Definitions
Internal Definitions

category->constant (function)


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 cl-setlocale

Source

src/package.lisp (file)

Use List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Constants

Constant: +lc-all+

Set the entire locale generically.

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file

Constant: +lc-collate+

Set a locale for string collation routines. This controls alphabetic ordering in strcoll() and strxfrm().

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file

Constant: +lc-ctype+

Set a locale for the ctype(3) and multibyte(3) functions. This controls recognition of upper and lower case, alphabetic or non-alphabetic characters, and so on.

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file

Constant: +lc-messages+

Set a locale for message catalogs, see catopen(3) function.

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file

Constant: +lc-monetary+

Set a locale for formatting monetary values; this affects the localeconv() function.

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file

Constant: +lc-time+

Set a locale for formatting dates and times using the strftime() function.

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file


Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Functions

Function: set-all-to-native ()

This function sets LC_ALL locale to one of the native environment.

Package

cl-setlocale

Source

src/setlocale.lisp (file)

Function: setlocale CATEGORY LOCALE

Set the locale. CATEGORY can be one of :LC-ALL, :LC-COLLATE, :LC-CTYPE, :LC-MESSAGES, :LC-MONETARY, :LC-NUMERIC or :LC-TIME. Locale is a string describing the desired locale. If this function succeeds, T is returned and set locale is returned as the second value. On failure NIL is returned

Package

cl-setlocale

Source

src/setlocale.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Constants

Constant: +lc-numeric+

Set a locale for formatting numbers. This controls the
formatting of decimal points in input and output of floating point numbers in functions such as printf() and scanf(), as well as values returned by localeconv().

Package

cl-setlocale

Source

/home/quickref/.cache/common-lisp/sbcl-1.5.8-linux-x64/home/quickref/quicklisp/dists/quicklisp/software/cl-setlocale-20201016-git/src/constants.processed-grovel-file


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: category->constant CATEGORY
Package

cl-setlocale

Source

src/setlocale.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L  
Index Entry  Section

C
cl-setlocale.asd: The cl-setlocale․asd file
cl-setlocale/src/constants.lisp: The cl-setlocale/src/constants․lisp file
cl-setlocale/src/package.lisp: The cl-setlocale/src/package․lisp file
cl-setlocale/src/setlocale.lisp: The cl-setlocale/src/setlocale․lisp file

F
File, Lisp, cl-setlocale.asd: The cl-setlocale․asd file
File, Lisp, cl-setlocale/src/constants.lisp: The cl-setlocale/src/constants․lisp file
File, Lisp, cl-setlocale/src/package.lisp: The cl-setlocale/src/package․lisp file
File, Lisp, cl-setlocale/src/setlocale.lisp: The cl-setlocale/src/setlocale․lisp file

L
Lisp File, cl-setlocale.asd: The cl-setlocale․asd file
Lisp File, cl-setlocale/src/constants.lisp: The cl-setlocale/src/constants․lisp file
Lisp File, cl-setlocale/src/package.lisp: The cl-setlocale/src/package․lisp file
Lisp File, cl-setlocale/src/setlocale.lisp: The cl-setlocale/src/setlocale․lisp file

Jump to:   C   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   C   F   S  
Index Entry  Section

C
category->constant: Internal functions

F
Function, category->constant: Internal functions
Function, set-all-to-native: Exported functions
Function, setlocale: Exported functions

S
set-all-to-native: Exported functions
setlocale: Exported functions

Jump to:   C   F   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   +  
C  
Index Entry  Section

+
+lc-all+: Exported constants
+lc-collate+: Exported constants
+lc-ctype+: Exported constants
+lc-messages+: Exported constants
+lc-monetary+: Exported constants
+lc-numeric+: Internal constants
+lc-time+: Exported constants

C
Constant, +lc-all+: Exported constants
Constant, +lc-collate+: Exported constants
Constant, +lc-ctype+: Exported constants
Constant, +lc-messages+: Exported constants
Constant, +lc-monetary+: Exported constants
Constant, +lc-numeric+: Internal constants
Constant, +lc-time+: Exported constants

Jump to:   +  
C  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   P   S  
Index Entry  Section

C
cl-setlocale: The cl-setlocale system
cl-setlocale: The cl-setlocale package

P
Package, cl-setlocale: The cl-setlocale package

S
System, cl-setlocale: The cl-setlocale system

Jump to:   C   P   S