Changeset 272 for Include/system/string.sbp
- Timestamp:
- Jun 12, 2007, 7:24:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/system/string.sbp
r258 r272 5 5 #define _INC_BASIC_STRING 6 6 7 Function StrPtr( buf As *StrChar) As *StrChar8 StrPtr = buf7 Function StrPtr(s As String) As *StrChar 8 StrPtr = s.StrPtr 9 9 End Function 10 10 … … 93 93 94 94 Function GetStr(s As String, ByRef mbs As PSTR) As SIZE_T 95 Return GetStr(s. Chars, s.Length As SIZE_T, mbs)95 Return GetStr(s.StrPtr, s.Length As SIZE_T, mbs) 96 96 End Function 97 97 98 98 Function GetStr(s As String, ByRef wcs As PWSTR) As SIZE_T 99 Return GetStr(s. Chars, s.Length As SIZE_T, wcs)99 Return GetStr(s.StrPtr, s.Length As SIZE_T, wcs) 100 100 End Function 101 101 … … 117 117 118 118 Function GetWCStr(s As String, ByRef wcs As PWSTR) As SIZE_T 119 Return GetStr(s. Chars, s.Length As SIZE_T, wcs)119 Return GetStr(s.StrPtr, s.Length As SIZE_T, wcs) 120 120 End Function 121 121 … … 137 137 138 138 Function GetMBStr(s As String, ByRef mbs As PSTR) As SIZE_T 139 Return GetStr(s. Chars, s.Length As SIZE_T, mbs)139 Return GetStr(s.StrPtr, s.Length As SIZE_T, mbs) 140 140 End Function 141 141 … … 157 157 158 158 Function GetTCStr(s As String, ByRef tcs As PCTSTR) As SIZE_T 159 Return GetStr(s. Chars, s.Length As SIZE_T, tcs)159 Return GetStr(s.StrPtr, s.Length As SIZE_T, tcs) 160 160 End Function 161 161 … … 177 177 178 178 Function GetSCStr(s As String, ByRef ss As *StrChar) As SIZE_T 179 Return GetStr(s. Chars, s.Length As SIZE_T, ss)179 Return GetStr(s.StrPtr, s.Length As SIZE_T, ss) 180 180 End Function 181 181 … … 197 197 198 198 Function ToWCStr(s As String) As PWSTR 199 GetStr(s. Chars, s.Length As SIZE_T, ToWCStr)199 GetStr(s.StrPtr, s.Length As SIZE_T, ToWCStr) 200 200 End Function 201 201 … … 217 217 218 218 Function ToMBStr(s As String) As PSTR 219 GetStr(s. Chars, s.Length As SIZE_T, ToMBStr)219 GetStr(s.StrPtr, s.Length As SIZE_T, ToMBStr) 220 220 End Function 221 221 … … 237 237 238 238 Function ToTCStr(s As String) As PCTSTR 239 GetStr(s. Chars, s.Length As SIZE_T, ToTCStr)239 GetStr(s.StrPtr, s.Length As SIZE_T, ToTCStr) 240 240 End Function 241 241 … … 257 257 258 258 Function ToSCStr(s As String) As *StrChar 259 GetStr(s. Chars, s.Length As SIZE_T, ToSCStr)259 GetStr(s.StrPtr, s.Length As SIZE_T, ToSCStr) 260 260 End Function 261 261
Note:
See TracChangeset
for help on using the changeset viewer.