ホーム › UI.WindowsAndMessaging › IsCharLowerA
IsCharLowerA
関数文字が小文字かを判定する(ANSI)。
シグネチャ
// USER32.dll (ANSI / -A)
#include <windows.h>
BOOL IsCharLowerA(
CHAR ch
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| ch | CHAR | in |
戻り値の型: BOOL
各言語での呼び出し定義
// USER32.dll (ANSI / -A)
#include <windows.h>
BOOL IsCharLowerA(
CHAR ch
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("USER32.dll", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
static extern bool IsCharLowerA(
sbyte ch // CHAR
);<DllImport("USER32.dll", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)>
Public Shared Function IsCharLowerA(
ch As SByte ' CHAR
) As Boolean
End Function' ch : CHAR
Declare PtrSafe Function IsCharLowerA Lib "user32" ( _
ByVal ch As Byte) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
IsCharLowerA = ctypes.windll.user32.IsCharLowerA
IsCharLowerA.restype = wintypes.BOOL
IsCharLowerA.argtypes = [
ctypes.c_byte, # ch : CHAR
]
# GetLastError: use ctypes.GetLastError() (or ctypes.WinDLL(use_last_error=True))require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('USER32.dll')
IsCharLowerA = Fiddle::Function.new(
lib['IsCharLowerA'],
[
Fiddle::TYPE_CHAR, # ch : CHAR
],
Fiddle::TYPE_INT)#[link(name = "user32")]
extern "system" {
fn IsCharLowerA(
ch: i8 // CHAR
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("USER32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
public static extern bool IsCharLowerA(sbyte ch);
"@
$api = Add-Type -MemberDefinition $sig -Name 'USER32_IsCharLowerA' -Namespace Win32 -PassThru
# $api::IsCharLowerA(ch)#uselib "USER32.dll"
#func global IsCharLowerA "IsCharLowerA" sptr
; IsCharLowerA ch ; 戻り値は stat
; ch : CHAR -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "USER32.dll"
#cfunc global IsCharLowerA "IsCharLowerA" int
; res = IsCharLowerA(ch)
; ch : CHAR -> "int"; BOOL IsCharLowerA(CHAR ch)
#uselib "USER32.dll"
#cfunc global IsCharLowerA "IsCharLowerA" int
; res = IsCharLowerA(ch)
; ch : CHAR -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
user32 = windows.NewLazySystemDLL("USER32.dll")
procIsCharLowerA = user32.NewProc("IsCharLowerA")
)
// ch (CHAR)
r1, _, err := procIsCharLowerA.Call(
uintptr(ch),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction IsCharLowerA(
ch: Shortint // CHAR
): BOOL; stdcall;
external 'USER32.dll' name 'IsCharLowerA';result := DllCall("USER32\IsCharLowerA"
, "Char", ch ; CHAR
, "Int") ; return: BOOL●IsCharLowerA(ch) = DLL("USER32.dll", "bool IsCharLowerA(char)")
# 呼び出し: IsCharLowerA(ch)
# ch : CHAR -> "char"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。