Ignore:
Timestamp:
Nov 17, 2007, 9:34:36 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

SPrintf関数の実装

Location:
trunk/Include/Classes/System
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/String.ab

    r370 r383  
    66
    77#ifdef __STRING_IS_NOT_ALWAYS_UNICODE
     8
     9#ifndef UNICODE
    810TypeDef StrChar = Char
    9 #ifndef UNICODE
    1011#define __STRING_IS_NOT_UNICODE
    1112#endif
     13
     14#endif
     15
     16#ifndef __STRING_IS_NOT_UNICODE
     17TypeDef StrChar = WCHAR
     18
     19#ifdef UNICODE
     20#define __STRING_IS_UNICODE
    1221#else
    13 TypeDef StrChar = WCHAR
    14 #ifndef UNICODE
    1522#define __STRING_UNICODE_WINDOWS_ANSI
    1623#endif
     
    7784            Assign(initStr + start, length)
    7885        End Sub
    79        
     86
    8087        Sub String(initStr As String)
    8188            If Not String.IsNullOrEmpty(initStr) Then
     
    592599            End If
    593600        End Sub
    594        
     601
    595602        Const Sub rangeCheck(start As Long, length As Long)
    596603            If start < 0 Or start > This.m_Length Or length < 0 Then
  • trunk/Include/Classes/System/Text/StringBuilder.ab

    r370 r383  
    520520        If Not String.IsNullOrEmpty(s) Then
    521521            s.CopyTo(startIndex, chars, 0, length)
    522             size = s.Length
     522            size = length
    523523        End If
    524524    End Sub
Note: See TracChangeset for help on using the changeset viewer.