Changeset 478 for trunk/Include/system/string.sbp
- Timestamp:
- Mar 13, 2008, 9:06:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/system/string.sbp
r398 r478 5 5 #define _INC_BASIC_STRING 6 6 7 #require <Classes/System/String.ab> 8 #require <Classes/System/Text/StringBuilder.ab> 9 10 Function StrPtr(s As String) As *StrChar 7 Function StrPtr(s As String) As *Char 11 8 If Not ActiveBasic.IsNothing(s) Then 12 9 StrPtr = s.StrPtr … … 62 59 出力関数: wcs(z)出力GetStr, mbs(z)出力GetStr, 63 60 wcs(z)出力GetStrNT, mbs(z)出力GetStrNT, 64 GetWCStr, GetMBStr, GetTCStr, GetSCStr,65 ToWCStr, ToMBStr, ToTCStr, ToSCStr66 で、5 * 1 2 = 60通り。61 GetWCStr, GetMBStr, GetTCStr, 62 ToWCStr, ToMBStr, ToTCStr, 63 で、5 * 10 = 50通り。 67 64 */ 68 65 … … 261 258 End Function 262 259 263 Function GetSCStr(mbszSrc As PSTR, ByRef ssDst As *StrChar) As SIZE_T264 Return GetStr(mbszSrc, ssDst)265 End Function266 267 Function GetSCStr(mbsSrc As PSTR, len As SIZE_T, ByRef ssDst As *StrChar) As SIZE_T268 Return GetStr(mbsSrc, len, ssDst)269 End Function270 271 Function GetSCStr(wcszSrc As PWSTR, ByRef ssDst As *StrChar) As SIZE_T272 Return GetStr(wcszSrc, ssDst)273 End Function274 275 Function GetSCStr(wcsSrc As PWSTR, len As SIZE_T, ByRef ssDst As *StrChar) As SIZE_T276 Return GetStr(wcsSrc, len, ssDst)277 End Function278 279 Function GetSCStr(strSrc As String, ByRef ssDst As *StrChar) As SIZE_T280 Return GetStr(strSrc.StrPtr, strSrc.Length As SIZE_T, ssDst)281 End Function282 283 260 Function ToWCStr(mbsz As PSTR) As PWSTR 284 261 GetStrNT(mbsz, ToWCStr) … … 339 316 Function ToTCStr(s As String) As PCTSTR 340 317 GetStrNT(s, ToTCStr) 341 End Function342 343 Function ToSCStr(mbsz As PSTR) As *StrChar344 GetStrNT(mbsz, ToSCStr)345 End Function346 347 Function ToSCStr(mbs As PSTR, len As SIZE_T) As *StrChar348 GetStrNT(mbs, len, ToSCStr)349 End Function350 351 Function ToSCStr(wcsz As PWSTR) As *StrChar352 GetStrNT(wcsz, ToSCStr)353 End Function354 355 Function ToSCStr(wcs As PWSTR, len As SIZE_T) As *StrChar356 GetStrNT(wcs, len, ToSCStr)357 End Function358 359 Function ToSCStr(s As String) As *StrChar360 ToSCStr = StrPtr(s)361 318 End Function 362 319
Note:
See TracChangeset
for help on using the changeset viewer.