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