Win32 API 日本語リファレンス
ホームGlobalization › ucol_reset

ucol_reset

関数
照合要素イテレータを先頭位置にリセットする。
DLLicuin.dll呼出規約cdecl

シグネチャ

// icuin.dll
#include <windows.h>

void ucol_reset(
    UCollationElements* elems
);

パラメーター

名前方向
elemsUCollationElements*inout

戻り値の型: void

各言語での呼び出し定義

// icuin.dll
#include <windows.h>

void ucol_reset(
    UCollationElements* elems
);
[DllImport("icuin.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void ucol_reset(
    ref IntPtr elems   // UCollationElements* in/out
);
<DllImport("icuin.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub ucol_reset(
    ByRef elems As IntPtr   ' UCollationElements* in/out
)
End Sub
' elems : UCollationElements* in/out
Declare PtrSafe Sub ucol_reset Lib "icuin" ( _
    ByRef elems As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ucol_reset = ctypes.cdll.icuin.ucol_reset
ucol_reset.restype = None
ucol_reset.argtypes = [
    ctypes.c_void_p,  # elems : UCollationElements* in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('icuin.dll')
ucol_reset = Fiddle::Function.new(
  lib['ucol_reset'],
  [
    Fiddle::TYPE_VOIDP,  # elems : UCollationElements* in/out
  ],
  Fiddle::TYPE_VOID, Fiddle::Function::CDECL)
#[link(name = "icuin")]
extern "C" {
    fn ucol_reset(
        elems: *mut isize  // UCollationElements* in/out
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("icuin.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void ucol_reset(ref IntPtr elems);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuin_ucol_reset' -Namespace Win32 -PassThru
# $api::ucol_reset(elems)
#uselib "icuin.dll"
#func global ucol_reset "ucol_reset" sptr
; ucol_reset elems
; elems : UCollationElements* in/out -> "sptr"
#uselib "icuin.dll"
#func global ucol_reset "ucol_reset" int
; ucol_reset elems
; elems : UCollationElements* in/out -> "int"
; void ucol_reset(UCollationElements* elems)
#uselib "icuin.dll"
#func global ucol_reset "ucol_reset" int
; ucol_reset elems
; elems : UCollationElements* in/out -> "int"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procucol_reset = icuin.NewProc("ucol_reset")
)

// elems (UCollationElements* in/out)
r1, _, err := procucol_reset.Call(
	uintptr(elems),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure ucol_reset(
  elems: Pointer   // UCollationElements* in/out
); cdecl;
  external 'icuin.dll' name 'ucol_reset';
result := DllCall("icuin\ucol_reset"
    , "Ptr", elems   ; UCollationElements* in/out
    , "Cdecl Int")   ; return: void
●ucol_reset(elems) = DLL("icuin.dll", "int ucol_reset(void*)")
# 呼び出し: ucol_reset(elems)
# elems : UCollationElements* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。