ホーム › Globalization › uset_isFrozen
uset_isFrozen
関数USetが凍結されているかどうかを判定する。
シグネチャ
// icuuc.dll
#include <windows.h>
CHAR uset_isFrozen(
const USet* set
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| set | USet* | in |
戻り値の型: CHAR
各言語での呼び出し定義
// icuuc.dll
#include <windows.h>
CHAR uset_isFrozen(
const USet* set
);[DllImport("icuuc.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern sbyte uset_isFrozen(
ref IntPtr set // USet*
);<DllImport("icuuc.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Function uset_isFrozen(
ByRef [set] As IntPtr ' USet*
) As SByte
End Function' set : USet*
Declare PtrSafe Function uset_isFrozen Lib "icuuc" ( _
ByRef set As LongPtr) As Byte
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
uset_isFrozen = ctypes.cdll.icuuc.uset_isFrozen
uset_isFrozen.restype = ctypes.c_byte
uset_isFrozen.argtypes = [
ctypes.c_void_p, # set : USet*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuuc.dll')
uset_isFrozen = Fiddle::Function.new(
lib['uset_isFrozen'],
[
Fiddle::TYPE_VOIDP, # set : USet*
],
Fiddle::TYPE_CHAR, Fiddle::Function::CDECL)#[link(name = "icuuc")]
extern "C" {
fn uset_isFrozen(
set: *const isize // USet*
) -> i8;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuuc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern sbyte uset_isFrozen(ref IntPtr set);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuuc_uset_isFrozen' -Namespace Win32 -PassThru
# $api::uset_isFrozen(set)#uselib "icuuc.dll"
#func global uset_isFrozen "uset_isFrozen" sptr
; uset_isFrozen set ; 戻り値は stat
; set : USet* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "icuuc.dll"
#cfunc global uset_isFrozen "uset_isFrozen" int
; res = uset_isFrozen(set)
; set : USet* -> "int"; CHAR uset_isFrozen(USet* set)
#uselib "icuuc.dll"
#cfunc global uset_isFrozen "uset_isFrozen" int
; res = uset_isFrozen(set)
; set : USet* -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuuc = windows.NewLazySystemDLL("icuuc.dll")
procuset_isFrozen = icuuc.NewProc("uset_isFrozen")
)
// set (USet*)
r1, _, err := procuset_isFrozen.Call(
uintptr(set),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // CHARfunction uset_isFrozen(
set: Pointer // USet*
): Shortint; cdecl;
external 'icuuc.dll' name 'uset_isFrozen';result := DllCall("icuuc\uset_isFrozen"
, "Ptr", set ; USet*
, "Cdecl Char") ; return: CHAR●uset_isFrozen(set) = DLL("icuuc.dll", "char uset_isFrozen(void*)")
# 呼び出し: uset_isFrozen(set)
# set : USet* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。