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

Unicode (#50) 前準備
Byte→Char (#51) 型名は殆ど完了、ただし中身までは手を付けていないものが多い

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/basic/function.sbp

    r110 r119  
    514514    End If
    515515End Sub
    516 Function _ecvt(value As Double, count As Long, ByRef dec As Long, ByRef sign As Long) As BytePtr
    517     Dim temp As BytePtr
     516Function _ecvt(value As Double, count As Long, ByRef dec As Long, ByRef sign As Long) As *Char
     517    Dim temp As *Char
    518518    Dim i As Long, i2 As Long
    519519
     
    540540    dec=1
    541541    While value<0.999999999999999  'value<1
    542         value=value*10
    543         dec=dec-1
     542        value *= 10
     543        dec--
    544544    Wend
    545545    While 9.99999999999999<=value  '10<=value
    546         value=value/10
    547         dec=dec+1
     546        value /= 10
     547        dec++
    548548    Wend
    549549
     
    555555    _System_ecvt_buffer[i]=0
    556556
    557     i=i-1
     557    i--
    558558    If value>=5 Then
    559559        '切り上げ処理
     
    562562
    563563    For i=0 To count-1
    564         _System_ecvt_buffer[i]=_System_ecvt_buffer[i]+&H30
     564        _System_ecvt_buffer[i] += &H30
    565565    Next
    566566    _System_ecvt_buffer[i]=0
     
    713713End Function
    714714
    715 Function Val(buf As BytePtr) As Double
     715Function Val(buf As *Char) As Double
    716716    Dim i As Long, i2 As Long, i3 As Long, i4 As Long
    717717    Dim temporary As String
    718     Dim TempPtr As BytePtr
     718    Dim TempPtr As *Char
    719719    Dim dbl As Double
    720720    Dim i64data As Int64
     
    10241024End Function
    10251025
     1026Function _System_IsSurrogatePair(wcHigh As WCHAR, wcLow As WCHAR) As Boolean
     1027    If &hD800 <= wcHigh And wcHigh < &hDC00 Then
     1028        If &hDC00 <= wcLow And wcLow < &hE000 Then
     1029            Return True
     1030        End If
     1031    End If
     1032    Return False
     1033End Function
    10261034
    10271035#endif '_INC_FUNCTION
Note: See TracChangeset for help on using the changeset viewer.