Ignore:
Timestamp:
Feb 18, 2007, 11:19:00 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

ByteからCharへの変更(不完全)ほか微修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/basic/function.sbp

    r94 r110  
    344344'------------
    345345
    346 Function Asc(buf As String) As Byte
     346Function Asc(buf As String) As Char
    347347    Asc = buf[0]
    348348End Function
    349349
    350 Function Chr$(code As Byte) As String
     350Function Chr$(code As Char) As String
    351351    Chr$=ZeroString(1)
    352352    Chr$[0]=code
     
    497497End Function
    498498
    499 Dim _System_ecvt_buffer[16] As Byte
     499Dim _System_ecvt_buffer[16] As Char
    500500Sub _ecvt_support(count As Long)
    501501    Dim i As Long
     
    511511        End If
    512512    Else
    513         _System_ecvt_buffer[count]=_System_ecvt_buffer[count]+1 As Byte
     513        _System_ecvt_buffer[count]=_System_ecvt_buffer[count]+1 As Char
    514514    End If
    515515End Sub
     
    549549
    550550    For i=0 To count-1
    551         _System_ecvt_buffer[i]=Int(value) As Byte
     551        _System_ecvt_buffer[i]=Int(value) As Char
    552552
    553553        value=(value-CDbl(Int(value)))*10
     
    578578    End If
    579579    Dim dec As Long, sign As Long
    580     Dim buffer[32] As Byte, temp As BytePtr
     580    Dim buffer[32] As Char, temp As *Char
    581581    Dim i As Long, i2 As Long, i3 As Long
    582582
     
    664664End Function
    665665Function Str$(value As LONG_PTR) As String
    666     Dim temp[255] As Byte
     666    Dim temp[255] As Char
    667667    wsprintf(temp,"%d",value)
    668668    Str$=MakeStr(temp)
     
    739739                If Not (0<=i3 And i3<=7) Then Exit While
    740740
    741                 TempPtr[i]=i3 As Byte
     741                TempPtr[i]=i3 As Char
    742742                i++
    743743            Wend
     
    762762                End If
    763763
    764                 TempPtr[i]=i3 As Byte
     764                TempPtr[i]=i3 As Char
    765765                i++
    766766            Wend
     
    918918Sub _splitpath(path As BytePtr, drive As BytePtr, dir As BytePtr, fname As BytePtr, ext As BytePtr)
    919919    Dim i As Long, i2 As Long, i3 As Long, length As Long
    920     Dim buffer[MAX_PATH] As Byte
     920    Dim buffer[MAX_PATH] As Char
    921921
    922922    '":\"をチェック
     
    934934    i2=0
    935935    Do
     936#ifdef UNICODE
     937' ToDo: サロゲートペアの認識
     938#else
    936939        If IsDBCSLeadByte(path[i])=TRUE and path[i+1]<>0 Then
    937940            If dir Then
     
    944947            Continue
    945948        End If
     949#endif
    946950
    947951        If path[i]=0 Then Exit Do
Note: See TracChangeset for help on using the changeset viewer.