コード例 #1
0
 public static SDKStringIM getHeaderString(
     int langIndex,
     int stringID,
     SDKStringIM _string)
 {
     return(_string == null ? new SDKStringIM(SDKTextUtils.getHeaderString(langIndex, stringID, (SDKString)null)) : SDKUtils.getHeaderString(langIndex, stringID, ref _string));
 }
コード例 #2
0
 public static void drawSubString(
     SDKStringIM _string,
     int offset,
     int len,
     int x,
     int y,
     int anchor)
 {
     SDKTextUtils.drawSubString(_string.getEAString(), offset, len, x, y, anchor, new SDKTextUtils.DrawRegionRoutineDelegate(GlobalMembersSDKUtils.renderFunc));
 }
コード例 #3
0
 public static void drawWrappedString(
     SDKStringIM _string,
     short[] offsets,
     int startLine,
     int lineCount,
     int x,
     int y,
     int anchor)
 {
     SDKTextUtils.drawWrappedString(_string.getEAString(), offsets, startLine, lineCount, x, y, anchor, new SDKTextUtils.DrawRegionRoutineDelegate(GlobalMembersSDKUtils.renderFunc));
 }
コード例 #4
0
 public static short[] wrapString(
     ref SDKStringIM _string,
     ref short[] offsets,
     int wrapLimit,
     short newline)
 {
     if (offsets == null)
     {
         return(SDKUtils.convertWrapData(SDKTextUtils.wrapString(_string.getEAString(), (short[])null, wrapLimit, newline)));
     }
     SDKTextUtils.wrapString(_string.getEAString(), offsets, wrapLimit, newline);
     return(offsets);
 }
コード例 #5
0
        public static SDKStringIM getHeaderString(
            int langIndex,
            int stringID,
            ref SDKStringIM _string)
        {
            bool      flag         = _string.getEAString() == null;
            SDKString headerString = SDKTextUtils.getHeaderString(langIndex, stringID, _string.getEAString());

            if (flag)
            {
                _string.setEAString(headerString);
            }
            return(_string);
        }
コード例 #6
0
        public static SDKStringIM getString(int stringID, ref SDKStringIM _string)
        {
            if (_string == null)
            {
                _string = new SDKStringIM();
            }
            bool      flag     = _string.getEAString() == null;
            SDKString eaString = SDKTextUtils.getString(stringID, _string.getEAString());

            if (flag)
            {
                _string.setEAString(eaString);
            }
            return(_string);
        }
コード例 #7
0
 public static int getSubStringSize(ref SDKStringIM _string, int offset, int len)
 {
     return(SDKTextUtils.getSubStringSize(_string.getEAString(), offset, len));
 }
コード例 #8
0
 public static int getStringSize(ref SDKStringIM _string)
 {
     return(SDKTextUtils.getStringSize(_string.getEAString()));
 }