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