public static short[] wrapString( SDKString _string, short[] offsets, int wrapLimit, short newline) { return(SDKTextUtils.wrapSubString(_string, 0, _string.Length(), offsets, wrapLimit, newline)); }
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); }
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); }
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); }
public static int getStringSize(SDKString _string) { return(SDKTextUtils.getSubStringSize(_string, 0, _string.Length())); }