iTextSharp.text.pdf.PdfChunk.Trim C# (CSharp) 메소드

Trim() 개인적인 메소드

private Trim ( string str ) : string
str string
리턴 string
        internal string Trim(string str)
        {
            BaseFont ft = font.Font;
            if (ft.FontType == BaseFont.FONT_TYPE_CJK && ft.GetUnicodeEquivalent(' ') != ' ') {
                while (str.EndsWith("\u0001")) {
                    str = str.Substring(0, str.Length - 1);
                }
            }
            else {
                while (str.EndsWith(" ") || str.EndsWith("\t")) {
                    str = str.Substring(0, str.Length - 1);
                }
            }
            return str;
        }