HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.ISplitCharacter Interface Reference

Interface for customizing the split character. More...

Inheritance diagram for iTextSharp.text.ISplitCharacter:
iTextSharp.text.pdf.DefaultSplitCharacter

Public Member Functions

bool IsSplitCharacter (int start, int current, int end, char[] cc, PdfChunk[] ck)
 

Detailed Description

Interface for customizing the split character.

Member Function Documentation

◆ IsSplitCharacter()

bool iTextSharp.text.ISplitCharacter.IsSplitCharacter ( int  start,
int  current,
int  end,
char[]  cc,
PdfChunk[]  ck 
)

Returns true if the character can split a line. The splitting implementation is free to look ahead or look behind characters to make a decision.

The default implementation is:

public boolean IsSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck) {
   char c;
   if (ck == null)
       c = cc[current];
   else
       c = ck[Math.Min(current, ck.length - 1)].GetUnicodeEquivalent(cc[current]);
   if (c <= ' ' || c == '-') {
       return true;
   }
   if (c < 0x2e80)
       return false;
   return ((c >= 0x2e80 && c < 0xd7a0)
   || (c >= 0xf900 && c < 0xfb00)
   || (c >= 0xfe30 && c < 0xfe50)
   || (c >= 0xff61 && c < 0xffa0));
}
Parameters
startthe lower limit of cc inclusive
currentthe pointer to the character in cc
endthe upper limit of cc exclusive
ccan array of characters at least end sized
ckan array of PdfChunk. The main use is to be able to call PdfChunk#getUnicodeEquivalent(char). It may be null or shorter than end. If null no convertion takes place. If shorter than end the last element is used
Returns
true if the Character(s) can split a line

Implemented in iTextSharp.text.pdf.DefaultSplitCharacter.


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