ホーム › Globalization › ubidi_orderParagraphsLTR
ubidi_orderParagraphsLTR
関数段落を常に左から右へ並べるか設定する。
シグネチャ
// icuuc.dll
#include <windows.h>
void ubidi_orderParagraphsLTR(
UBiDi* pBiDi,
CHAR orderParagraphsLTR
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pBiDi | UBiDi* | inout |
| orderParagraphsLTR | CHAR | in |
戻り値の型: void
各言語での呼び出し定義
// icuuc.dll
#include <windows.h>
void ubidi_orderParagraphsLTR(
UBiDi* pBiDi,
CHAR orderParagraphsLTR
);[DllImport("icuuc.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void ubidi_orderParagraphsLTR(
ref IntPtr pBiDi, // UBiDi* in/out
sbyte orderParagraphsLTR // CHAR
);<DllImport("icuuc.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub ubidi_orderParagraphsLTR(
ByRef pBiDi As IntPtr, ' UBiDi* in/out
orderParagraphsLTR As SByte ' CHAR
)
End Sub' pBiDi : UBiDi* in/out
' orderParagraphsLTR : CHAR
Declare PtrSafe Sub ubidi_orderParagraphsLTR Lib "icuuc" ( _
ByRef pBiDi As LongPtr, _
ByVal orderParagraphsLTR As Byte)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
ubidi_orderParagraphsLTR = ctypes.cdll.icuuc.ubidi_orderParagraphsLTR
ubidi_orderParagraphsLTR.restype = None
ubidi_orderParagraphsLTR.argtypes = [
ctypes.c_void_p, # pBiDi : UBiDi* in/out
ctypes.c_byte, # orderParagraphsLTR : CHAR
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuuc.dll')
ubidi_orderParagraphsLTR = Fiddle::Function.new(
lib['ubidi_orderParagraphsLTR'],
[
Fiddle::TYPE_VOIDP, # pBiDi : UBiDi* in/out
Fiddle::TYPE_CHAR, # orderParagraphsLTR : CHAR
],
Fiddle::TYPE_VOID, Fiddle::Function::CDECL)#[link(name = "icuuc")]
extern "C" {
fn ubidi_orderParagraphsLTR(
pBiDi: *mut isize, // UBiDi* in/out
orderParagraphsLTR: i8 // CHAR
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuuc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void ubidi_orderParagraphsLTR(ref IntPtr pBiDi, sbyte orderParagraphsLTR);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuuc_ubidi_orderParagraphsLTR' -Namespace Win32 -PassThru
# $api::ubidi_orderParagraphsLTR(pBiDi, orderParagraphsLTR)#uselib "icuuc.dll"
#func global ubidi_orderParagraphsLTR "ubidi_orderParagraphsLTR" sptr, sptr
; ubidi_orderParagraphsLTR pBiDi, orderParagraphsLTR
; pBiDi : UBiDi* in/out -> "sptr"
; orderParagraphsLTR : CHAR -> "sptr"#uselib "icuuc.dll"
#func global ubidi_orderParagraphsLTR "ubidi_orderParagraphsLTR" int, int
; ubidi_orderParagraphsLTR pBiDi, orderParagraphsLTR
; pBiDi : UBiDi* in/out -> "int"
; orderParagraphsLTR : CHAR -> "int"; void ubidi_orderParagraphsLTR(UBiDi* pBiDi, CHAR orderParagraphsLTR)
#uselib "icuuc.dll"
#func global ubidi_orderParagraphsLTR "ubidi_orderParagraphsLTR" int, int
; ubidi_orderParagraphsLTR pBiDi, orderParagraphsLTR
; pBiDi : UBiDi* in/out -> "int"
; orderParagraphsLTR : CHAR -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuuc = windows.NewLazySystemDLL("icuuc.dll")
procubidi_orderParagraphsLTR = icuuc.NewProc("ubidi_orderParagraphsLTR")
)
// pBiDi (UBiDi* in/out), orderParagraphsLTR (CHAR)
r1, _, err := procubidi_orderParagraphsLTR.Call(
uintptr(pBiDi),
uintptr(orderParagraphsLTR),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure ubidi_orderParagraphsLTR(
pBiDi: Pointer; // UBiDi* in/out
orderParagraphsLTR: Shortint // CHAR
); cdecl;
external 'icuuc.dll' name 'ubidi_orderParagraphsLTR';result := DllCall("icuuc\ubidi_orderParagraphsLTR"
, "Ptr", pBiDi ; UBiDi* in/out
, "Char", orderParagraphsLTR ; CHAR
, "Cdecl Int") ; return: void●ubidi_orderParagraphsLTR(pBiDi, orderParagraphsLTR) = DLL("icuuc.dll", "int ubidi_orderParagraphsLTR(void*, char)")
# 呼び出し: ubidi_orderParagraphsLTR(pBiDi, orderParagraphsLTR)
# pBiDi : UBiDi* in/out -> "void*"
# orderParagraphsLTR : CHAR -> "char"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。