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