VSS.Strings.Formatters.Generic_Integers

Entities

Tagged Types

Subprograms

Description

This package provides formatter for integer types.

Integer_Formatter supports following formatting options: [+-][0][1-9[0-9]*][#[1-9][0-9]+][[1-9][0-9]+[,. ]]

By default, space for sign is not reserved.

0 - fill leading zeros

By default, leading zeros is not filled.

1-9[0-9]* - number of digits (not include sign)

By default, shortest number of digits is used.

#[1-9][0-9]* - base

By default, base is 10.

_[1-9][0-9]+[^}] - groups separation

Number of digits in group and character to be used as group separator.

By default, group separation is disabled; default group separator is low line character.

Formatter

type Formatter is
  new VSS.Strings.Formatters.Abstract_Formatter with private;

Image

function Image (Item : Integer_Type) return Formatter
Parameters
Item
Return Value

Image

function Image
  (Name : VSS.Strings.Virtual_String;
   Item : Integer_Type) return Formatter
Parameters
Name
Item
Return Value