예제 #1
0
 public static short[] wrapString(
     SDKString _string,
     short[] offsets,
     int wrapLimit,
     short newline)
 {
     return(SDKTextUtils.wrapSubString(_string, 0, _string.Length(), offsets, wrapLimit, newline));
 }
예제 #2
0
 public static void drawString(
     SDKString _string,
     int x,
     int y,
     int anchor,
     SDKTextUtils.DrawRegionRoutineDelegate DrawRegionRoutine)
 {
     SDKTextUtils.drawSubString(_string, 0, _string.Length(), x, y, anchor, DrawRegionRoutine);
 }
예제 #3
0
 public SDKString append(SDKString str)
 {
     if (!this.m_mutable)
     {
         return(this);
     }
     JMath.min((int)this.m_capacity - (int)this.m_length, (int)str.m_length);
     this.m_length += (ushort)str.Length();
     this.m_data   += str.m_data;
     return(this);
 }
예제 #4
0
        public int indexOf(SDKString str, int fromIndex)
        {
            int num = str.Length();

            for (int index1 = fromIndex; index1 != (int)this.m_length - (num - 1); ++index1)
            {
                for (int index2 = 0; index2 != num && (int)this.charCodeAt(index1 + index2) == (int)str.charCodeAt(index2); ++index2)
                {
                    if (index2 != num - 1)
                    {
                        return(index1);
                    }
                }
            }
            return(-1);
        }
예제 #5
0
 public static int getStringSize(SDKString _string)
 {
     return(SDKTextUtils.getSubStringSize(_string, 0, _string.Length()));
 }