VSS.Strings.Formatters.Generic_Modulars

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]+]

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.

Formatter

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

Image

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

Image

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