Module: Windows::MSVCRT::String
- Defined in:
- lib/windows/msvcrt/string.rb
Constant Summary collapse
- Strcmp =
Win32API.new('msvcrt', 'strcmp', 'PP', 'I')
- Strcpy =
Win32API.new('msvcrt', 'strcpy', 'PL', 'L')
- Strlen =
Win32API.new('msvcrt', 'strlen', 'P', 'L')
- Strrev =
Win32API.new('msvcrt', '_strrev', 'P', 'P')
- Mbscmp =
Win32API.new('msvcrt', '_mbscmp', 'PP', 'I')
- Mbscpy =
Win32API.new('msvcrt', '_mbscpy', 'PL', 'L')
- Mbslen =
Win32API.new('msvcrt', '_mbslen', 'P', 'L')
- Mbsrev =
Win32API.new('msvcrt', '_mbsrev', 'P', 'P')
- Wcscmp =
Win32API.new('msvcrt', 'wcscmp', 'PP', 'I')
- Wcscpy =
Win32API.new('msvcrt', 'wcscpy', 'PL', 'L')
- Wcslen =
Win32API.new('msvcrt', 'wcslen', 'P', 'L')
- Wcsrev =
Win32API.new('msvcrt', '_wcsrev', 'P', 'P')
Instance Method Summary collapse
- #mbscmp(str1, str2) ⇒ Object
- #mbscpy(dest, src) ⇒ Object
- #mbslen(string) ⇒ Object
- #mbsrev(str) ⇒ Object
- #strcmp(str1, str2) ⇒ Object
- #strcpy(dest, src) ⇒ Object
- #strlen(string) ⇒ Object
- #strrev(str) ⇒ Object
- #wcscmp(str1, str2) ⇒ Object
- #wcscpy(dest, src) ⇒ Object
- #wcslen(string) ⇒ Object
- #wcsrev(str) ⇒ Object
Instance Method Details
#mbscmp(str1, str2) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/windows/msvcrt/string.rb', line 43 def mbscmp(str1, str2) if str1 == 0 || str2 == 0 return nil end Mbscmp.call(str1, str2) end |
#mbscpy(dest, src) ⇒ Object
50 51 52 53 |
# File 'lib/windows/msvcrt/string.rb', line 50 def mbscpy(dest, src) return nil if src == 0 Mbscpy.call(dest, src) end |
#mbslen(string) ⇒ Object
55 56 57 58 |
# File 'lib/windows/msvcrt/string.rb', line 55 def mbslen(string) return nil if string == 0 Mbslen.call(string) end |
#mbsrev(str) ⇒ Object
60 61 62 63 |
# File 'lib/windows/msvcrt/string.rb', line 60 def mbsrev(str) return nil if str == 0 Mbsrev.call(str) end |
#strcmp(str1, str2) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/windows/msvcrt/string.rb', line 21 def strcmp(str1, str2) if str1 == 0 || str2 == 0 return nil end Strcmp.call(str1, str2) end |
#strcpy(dest, src) ⇒ Object
28 29 30 31 |
# File 'lib/windows/msvcrt/string.rb', line 28 def strcpy(dest, src) return nil if src == 0 Strcpy.call(dest, src) end |
#strlen(string) ⇒ Object
33 34 35 36 |
# File 'lib/windows/msvcrt/string.rb', line 33 def strlen(string) return nil if string == 0 Strlen.call(string) end |
#strrev(str) ⇒ Object
38 39 40 41 |
# File 'lib/windows/msvcrt/string.rb', line 38 def strrev(str) return nil if str == 0 Strrev.call(str) end |
#wcscmp(str1, str2) ⇒ Object
65 66 67 68 69 70 |
# File 'lib/windows/msvcrt/string.rb', line 65 def wcscmp(str1, str2) if str1 == 0 || str2 == 0 return nil end Wcscmp.call(str1, str2) end |
#wcscpy(dest, src) ⇒ Object
72 73 74 75 |
# File 'lib/windows/msvcrt/string.rb', line 72 def wcscpy(dest, src) return nil if src == 0 Wcscpy.call(dest, src) end |
#wcslen(string) ⇒ Object
77 78 79 80 |
# File 'lib/windows/msvcrt/string.rb', line 77 def wcslen(string) return nil if string == 0 Wcslen.call(string) end |
#wcsrev(str) ⇒ Object
82 83 84 85 |
# File 'lib/windows/msvcrt/string.rb', line 82 def wcsrev(str) return nil if str == 0 Wcsrev.call(str) end |