Changeset 478 for trunk/Include/system


Ignore:
Timestamp:
Mar 13, 2008, 9:06:43 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

現在向けに修正(参照型のポインタの排除など)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/system/string.sbp

    r398 r478  
    55#define _INC_BASIC_STRING
    66
    7 #require <Classes/System/String.ab>
    8 #require <Classes/System/Text/StringBuilder.ab>
    9 
    10 Function StrPtr(s As String) As *StrChar
     7Function StrPtr(s As String) As *Char
    118    If Not ActiveBasic.IsNothing(s) Then
    129        StrPtr = s.StrPtr
     
    6259出力関数: wcs(z)出力GetStr, mbs(z)出力GetStr,
    6360          wcs(z)出力GetStrNT, mbs(z)出力GetStrNT,
    64           GetWCStr, GetMBStr, GetTCStr, GetSCStr,
    65           ToWCStr, ToMBStr, ToTCStr, ToSCStr
    66 で、5 * 12 = 60通り。
     61          GetWCStr, GetMBStr, GetTCStr,
     62          ToWCStr, ToMBStr, ToTCStr,
     63で、5 * 10 = 50通り。
    6764*/
    6865
     
    261258End Function
    262259
    263 Function GetSCStr(mbszSrc As PSTR, ByRef ssDst As *StrChar) As SIZE_T
    264     Return GetStr(mbszSrc, ssDst)
    265 End Function
    266 
    267 Function GetSCStr(mbsSrc As PSTR, len As SIZE_T, ByRef ssDst As *StrChar) As SIZE_T
    268     Return GetStr(mbsSrc, len, ssDst)
    269 End Function
    270 
    271 Function GetSCStr(wcszSrc As PWSTR, ByRef ssDst As *StrChar) As SIZE_T
    272     Return GetStr(wcszSrc, ssDst)
    273 End Function
    274 
    275 Function GetSCStr(wcsSrc As PWSTR, len As SIZE_T, ByRef ssDst As *StrChar) As SIZE_T
    276     Return GetStr(wcsSrc, len, ssDst)
    277 End Function
    278 
    279 Function GetSCStr(strSrc As String, ByRef ssDst As *StrChar) As SIZE_T
    280     Return GetStr(strSrc.StrPtr, strSrc.Length As SIZE_T, ssDst)
    281 End Function
    282 
    283260Function ToWCStr(mbsz As PSTR) As PWSTR
    284261    GetStrNT(mbsz, ToWCStr)
     
    339316Function ToTCStr(s As String) As PCTSTR
    340317    GetStrNT(s, ToTCStr)
    341 End Function
    342 
    343 Function ToSCStr(mbsz As PSTR) As *StrChar
    344     GetStrNT(mbsz, ToSCStr)
    345 End Function
    346 
    347 Function ToSCStr(mbs As PSTR, len As SIZE_T) As *StrChar
    348     GetStrNT(mbs, len, ToSCStr)
    349 End Function
    350 
    351 Function ToSCStr(wcsz As PWSTR) As *StrChar
    352     GetStrNT(wcsz, ToSCStr)
    353 End Function
    354 
    355 Function ToSCStr(wcs As PWSTR, len As SIZE_T) As *StrChar
    356     GetStrNT(wcs, len, ToSCStr)
    357 End Function
    358 
    359 Function ToSCStr(s As String) As *StrChar
    360     ToSCStr = StrPtr(s)
    361318End Function
    362319
Note: See TracChangeset for help on using the changeset viewer.