HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.Utilities Class Reference

Static Public Member Functions

static ICollection GetKeySet (Properties table)
 
static Object[][] AddToArray (Object[][] original, Object[] item)
 
static bool CheckTrueOrFalse (Properties attributes, String key)
 
static Uri ToURL (string filename)
 This method makes a valid URL from a given filename. More...
 
static String UnEscapeURL (String src)
 
static void Skip (Stream istr, int size)
 This method is an alternative for the Stream.Skip()-method that doesn't seem to work properly for big values of size. More...
 
static float MillimetersToPoints (float value)
 
static float MillimetersToInches (float value)
 
static float PointsToMillimeters (float value)
 
static float PointsToInches (float value)
 
static float InchesToMillimeters (float value)
 
static float InchesToPoints (float value)
 
static bool IsSurrogateHigh (char c)
 
static bool IsSurrogateLow (char c)
 
static bool IsSurrogatePair (string text, int idx)
 
static bool IsSurrogatePair (char[] text, int idx)
 
static int ConvertToUtf32 (char highSurrogate, char lowSurrogate)
 
static int ConvertToUtf32 (char[] text, int idx)
 
static int ConvertToUtf32 (string text, int idx)
 
static string ConvertFromUtf32 (int codePoint)
 

Detailed Description

A collection of convenience methods that were present in many different iText classes.

Member Function Documentation

◆ AddToArray()

static Object [][] iTextSharp.text.Utilities.AddToArray ( Object  original[][],
Object[]  item 
)
static

Utility method to extend an array.

Parameters
originalthe original array or null
itemthe item to be added to the array
Returns
a new array with the item appended

◆ CheckTrueOrFalse()

static bool iTextSharp.text.Utilities.CheckTrueOrFalse ( Properties  attributes,
String  key 
)
static

Checks for a true/false value of a key in a Properties object.

Parameters
attributes
key
Returns

◆ ConvertFromUtf32()

static string iTextSharp.text.Utilities.ConvertFromUtf32 ( int  codePoint)
static

◆ ConvertToUtf32() [1/3]

static int iTextSharp.text.Utilities.ConvertToUtf32 ( char  highSurrogate,
char  lowSurrogate 
)
static

◆ ConvertToUtf32() [2/3]

static int iTextSharp.text.Utilities.ConvertToUtf32 ( char[]  text,
int  idx 
)
static

◆ ConvertToUtf32() [3/3]

static int iTextSharp.text.Utilities.ConvertToUtf32 ( string  text,
int  idx 
)
static

◆ GetKeySet()

static ICollection iTextSharp.text.Utilities.GetKeySet ( Properties  table)
static

Parameters
table
Returns

◆ InchesToMillimeters()

static float iTextSharp.text.Utilities.InchesToMillimeters ( float  value)
static

Measurement conversion from inches to millimeters.

Parameters
valuea value in inches
Returns
a value in millimeters
Since
2.1.2

◆ InchesToPoints()

static float iTextSharp.text.Utilities.InchesToPoints ( float  value)
static

Measurement conversion from inches to points.

Parameters
valuea value in inches
Returns
a value in points
Since
2.1.2

◆ IsSurrogateHigh()

static bool iTextSharp.text.Utilities.IsSurrogateHigh ( char  c)
static

◆ IsSurrogateLow()

static bool iTextSharp.text.Utilities.IsSurrogateLow ( char  c)
static

◆ IsSurrogatePair() [1/2]

static bool iTextSharp.text.Utilities.IsSurrogatePair ( char[]  text,
int  idx 
)
static

◆ IsSurrogatePair() [2/2]

static bool iTextSharp.text.Utilities.IsSurrogatePair ( string  text,
int  idx 
)
static

◆ MillimetersToInches()

static float iTextSharp.text.Utilities.MillimetersToInches ( float  value)
static

Measurement conversion from millimeters to inches.

Parameters
valuea value in millimeters
Returns
a value in inches
Since
2.1.2

◆ MillimetersToPoints()

static float iTextSharp.text.Utilities.MillimetersToPoints ( float  value)
static

Measurement conversion from millimeters to points.

Parameters
valuea value in millimeters
Returns
a value in points
Since
2.1.2

◆ PointsToInches()

static float iTextSharp.text.Utilities.PointsToInches ( float  value)
static

Measurement conversion from points to inches.

Parameters
valuea value in points
Returns
a value in inches
Since
2.1.2

◆ PointsToMillimeters()

static float iTextSharp.text.Utilities.PointsToMillimeters ( float  value)
static

Measurement conversion from points to millimeters.

Parameters
valuea value in points
Returns
a value in millimeters
Since
2.1.2

◆ Skip()

static void iTextSharp.text.Utilities.Skip ( Stream  istr,
int  size 
)
static

This method is an alternative for the Stream.Skip()-method that doesn't seem to work properly for big values of size.

Parameters
istrthe stream
sizethe number of bytes to skip

◆ ToURL()

static Uri iTextSharp.text.Utilities.ToURL ( string  filename)
static

This method makes a valid URL from a given filename.

Parameters
filenamea given filename
Returns
a valid URL

◆ UnEscapeURL()

static String iTextSharp.text.Utilities.UnEscapeURL ( String  src)
static

Unescapes an URL. All the "%xx" are replaced by the 'xx' hex char value.

Parameters
srcthe url to unescape
Returns
the eunescaped value

The documentation for this class was generated from the following file: