Changeset 203 for Include/basic/function.sbp
- Timestamp:
- Apr 4, 2007, 6:53:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/function.sbp
r192 r203 1169 1169 End Function 1170 1170 1171 1172 1171 Function _System_StrCmp(s1 As PCSTR, s2 As PCSTR) As Long 1173 1172 Dim i = 0 As SIZE_T … … 1192 1191 End Function 1193 1192 1193 Function _System_StrCmpN(s1 As PCSTR, s2 As PCSTR, size As SIZE_T) As Long 1194 Dim i = 0 As SIZE_T 1195 For i = 0 To ELM(size) 1196 _System_StrCmp = s1[i] - s2[i] 1197 If _System_StrCmp <> 0 Then 1198 Exit Function 1199 End If 1200 Next 1201 End Function 1202 1203 Function _System_StrCmpN(s1 As PCWSTR, s2 As PCWSTR, size As SIZE_T) As Long 1204 Dim i = 0 As SIZE_T 1205 For i = 0 To ELM(size) 1206 _System_StrCmp = s1[i] - s2[i] 1207 If _System_StrCmp <> 0 Then 1208 Exit Function 1209 End If 1210 Next 1211 End Function 1212 1213 Function _System_MemChr(s As PCSTR, c As CHAR, size As SIZE_T) As PCSTR 1214 Dim i As SIZE_T 1215 For i = 0 To ELM(size) 1216 If s[i] = c Then 1217 Return VarPtr(s[i]) 1218 End If 1219 Next 1220 Return 0 1221 End Function 1222 1223 Function _System_MemChr(s As PCWSTR, c As WCHAR, size As SIZE_T) As PCWSTR 1224 Dim i As SIZE_T 1225 For i = 0 To ELM(size) 1226 If s[i] = c Then 1227 Return VarPtr(s[i]) 1228 End If 1229 Next 1230 Return 0 1231 End Function 1232 1233 Function _System_MemPBrk(str As PCSTR, cStr As SIZE_T, Chars As PCSTR, cChars As SIZE_T) As PCSTR 1234 Dim i As SIZE_T 1235 For i = 0 To ELM(cStr) 1236 If _System_MemChr(Chars, str[i], cChars) Then 1237 Return VarPtr(str[i]) 1238 End If 1239 Next 1240 Return 0 1241 End Function 1242 1243 Function _System_MemPBrk(str As PCWSTR, cStr As SIZE_T, Chars As PCWSTR, cChars As SIZE_T) As PCWSTR 1244 Dim i As SIZE_T 1245 For i = 0 To ELM(cStr) 1246 If _System_MemChr(Chars, str[i], cChars) Then 1247 Return VarPtr(str[i]) 1248 End If 1249 Next 1250 Return 0 1251 End Function 1252 1194 1253 Function _System_GetHashFromWordArray(p As *Word, n As SIZE_T) As Long 1195 1254 Dim hash = 0 As DWord
Note:
See TracChangeset
for help on using the changeset viewer.