Module: Windows::MSVCRT::String

Defined in:
lib/windows/msvcrt/string.rb

Constant Summary

Strchr =
API.new('strchr', 'PI', 'P', MSVCRT_DLL)
Strcmp =
API.new('strcmp', 'PP', 'I', MSVCRT_DLL)
Strcpy =
API.new('strcpy', 'PL', 'L', MSVCRT_DLL)
Strcspn =
API.new('strcspn', 'PP', 'L', MSVCRT_DLL)
Strlen =
API.new('strlen', 'P', 'L', MSVCRT_DLL)
Strncpy =
API.new('strncpy', 'PPL', 'P', MSVCRT_DLL)
Strpbrk =
API.new('strpbrk',  'PP', 'P', MSVCRT_DLL)
Strrchr =
API.new('strrchr', 'PI', 'P', MSVCRT_DLL)
Strrev =
API.new('_strrev', 'P', 'P', MSVCRT_DLL)
Strspn =
API.new('strspn', 'PP', 'L', MSVCRT_DLL)
Strstr =
API.new('strstr', 'PP', 'P', MSVCRT_DLL)
Strtok =
API.new('strtok', 'PP', 'P', MSVCRT_DLL)
Mbscmp =
API.new('_mbscmp', 'PP', 'I', 'msvcrt')
Mbscpy =
API.new('_mbscpy', 'PL', 'L', 'msvcrt')
Mbslen =
API.new('_mbslen', 'P', 'L', 'msvcrt')
Mbsrev =
API.new('_mbsrev', 'P', 'P', 'msvcrt')
Wcscmp =
API.new('wcscmp', 'PP', 'I', MSVCRT_DLL)
Wcscpy =
API.new('wcscpy', 'PL', 'L', MSVCRT_DLL)
Wcslen =
API.new('wcslen', 'P', 'L', MSVCRT_DLL)
Wcsncpy =
API.new('wcsncpy', 'PPL', 'P', MSVCRT_DLL)
Wcsrev =
API.new('_wcsrev', 'P', 'P', MSVCRT_DLL)

Instance Method Summary collapse

Instance Method Details

#strtok_s(token, delimeter, context) ⇒ Object



105
106
107
108
# File 'lib/windows/msvcrt/string.rb', line 105

def strtok_s(token, delimeter, context)
  return nil if [token, delimter, context].include?(0)
  Strtok_s.call(token, delimeter, context)
end