Changeset 110 for Include/basic/function.sbp
- Timestamp:
- Feb 18, 2007, 11:19:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/function.sbp
r94 r110 344 344 '------------ 345 345 346 Function Asc(buf As String) As Byte346 Function Asc(buf As String) As Char 347 347 Asc = buf[0] 348 348 End Function 349 349 350 Function Chr$(code As Byte) As String350 Function Chr$(code As Char) As String 351 351 Chr$=ZeroString(1) 352 352 Chr$[0]=code … … 497 497 End Function 498 498 499 Dim _System_ecvt_buffer[16] As Byte499 Dim _System_ecvt_buffer[16] As Char 500 500 Sub _ecvt_support(count As Long) 501 501 Dim i As Long … … 511 511 End If 512 512 Else 513 _System_ecvt_buffer[count]=_System_ecvt_buffer[count]+1 As Byte513 _System_ecvt_buffer[count]=_System_ecvt_buffer[count]+1 As Char 514 514 End If 515 515 End Sub … … 549 549 550 550 For i=0 To count-1 551 _System_ecvt_buffer[i]=Int(value) As Byte551 _System_ecvt_buffer[i]=Int(value) As Char 552 552 553 553 value=(value-CDbl(Int(value)))*10 … … 578 578 End If 579 579 Dim dec As Long, sign As Long 580 Dim buffer[32] As Byte, temp As BytePtr580 Dim buffer[32] As Char, temp As *Char 581 581 Dim i As Long, i2 As Long, i3 As Long 582 582 … … 664 664 End Function 665 665 Function Str$(value As LONG_PTR) As String 666 Dim temp[255] As Byte666 Dim temp[255] As Char 667 667 wsprintf(temp,"%d",value) 668 668 Str$=MakeStr(temp) … … 739 739 If Not (0<=i3 And i3<=7) Then Exit While 740 740 741 TempPtr[i]=i3 As Byte741 TempPtr[i]=i3 As Char 742 742 i++ 743 743 Wend … … 762 762 End If 763 763 764 TempPtr[i]=i3 As Byte764 TempPtr[i]=i3 As Char 765 765 i++ 766 766 Wend … … 918 918 Sub _splitpath(path As BytePtr, drive As BytePtr, dir As BytePtr, fname As BytePtr, ext As BytePtr) 919 919 Dim i As Long, i2 As Long, i3 As Long, length As Long 920 Dim buffer[MAX_PATH] As Byte920 Dim buffer[MAX_PATH] As Char 921 921 922 922 '":\"をチェック … … 934 934 i2=0 935 935 Do 936 #ifdef UNICODE 937 ' ToDo: サロゲートペアの認識 938 #else 936 939 If IsDBCSLeadByte(path[i])=TRUE and path[i+1]<>0 Then 937 940 If dir Then … … 944 947 Continue 945 948 End If 949 #endif 946 950 947 951 If path[i]=0 Then Exit Do
Note:
See TracChangeset
for help on using the changeset viewer.