L

Unicode文字列(UTF-16)型に変換

val = L(p1)

p1 : 変換元の値または変数

(プラグイン / モジュール : hspint64.dll)

解説

strw のマクロです。

なお、_T() マクロは 32bitランタイムの場合は置き換えなし、64bitランタイムの場合は strw に置き換えます。

※ マクロとしてhspint64.as内で定義されています。

サンプル

// 64bitランタイム
mes L("ABCDEF")	// UTF-16で扱う

// 32bitランタイム(標準ランタイム)
mes L("ABCDEF")	// UTF-16で扱う

関連項目

swdimUnicode文字列(UTF-16)型配列変数を作成(hspint64.dll)
_TUnicode文字列(UTF-16)型に変換(hspint64.dll)

サンプル逆引き (195)

(HSP3) sample1 [標準的なキャプチャサンプル].hsp
(HSP3) sample1 [標準的なキャプチャサンプル]_x64.hsp
01_int64.hsp
01_Sample_SMART.hsp
02_dim64.hsp
02_Sample_HDDStatus.hsp
03_qpeek、qpoke.hsp
04_varptr64.hsp
05_dupptr64.hsp
05_Sample_HDDInfo.hsp
06_libptr64.hsp
06_Sample_HDDHealth.hsp
10_float.hsp
11_fdim.hsp
12_floatとfloatintの違い.hsp
20_strw.hsp
21_swdim.hsp
22_strwlen.hsp
23_strwrep.hsp
24_instrw.hsp
25_strwupper.hsp
26_strwlower.hsp
27_strwinsert.hsp
28_strwmid.hsp
29_strwtrim.hsp
30_strwcomp.hsp
31_L(),_T() マクロ.hsp
32_UTF-16文字列操作時注意点.hsp
40_callfunc64系.hsp
41_cfunc64系.hsp
42_引数が構造体の値渡しの場合.hsp
43_戻り値が構造体の値渡しの場合.hsp
appconfig.hsp
arduino_test2.hsp
arduino_test3.hsp
arusave.hsp
aviplay.hsp
buffer.hsp
button_test.hsp
cdplay.hsp
celputm.hsp
clbk_gwlwndpproc.hsp
client2.hsp
cnt.hsp
cnvaxis.hsp
comtest1.hsp
comtest10.hsp
comtest3.hsp
comtest4.hsp
comtest7.hsp
cookie_get.hsp
cookie_set.hsp
customshader.hsp
d3m.hsp
d3m_techdemo.hsp
daytime.hsp
demo.hsp
dircsv.hsp
dragdrop.hsp
editor.hsp
emit_sample1.hsp
emit_sample2.hsp
eprim.hsp
es_test4.hsp
feedback.hsp
ftime.hsp
fullscr.hsp
get_binary.hsp
getenv.hsp
hello.hsp
hensu.hsp
hsptv_test2.hsp
http.hsp
http_test1.hsp
http_test2.hsp
https_download.hsp
libptr.hsp
light_test1.hsp
light_test2.hsp
light_test3.hsp
light_test4.hsp
light_test5eff.hsp
meshmap.hsp
meshmap3.hsp
meshmap4.hsp
meshmap5.hsp
meshmap6.hsp
meshmap7.hsp
modtest1.hsp
mplayer.hsp
multimon.hsp
multitouch1.hsp
multitouch2.hsp
multitouch3.hsp
nkfcnv.hsp
note2.hsp
noteadd.hsp
ntmem.hsp
obaqme.hsp
objcolor.hsp
objfade.hsp
objimage.hsp
objshadow.hsp
ogg_sndtest.hsp
particle.hsp
physics_1.hsp
physics_2.hsp
posteffect.hsp
postval.hsp
pronama2.hsp
pronama3.hsp
pronama4.hsp
pronama5.hsp
pronama_box.hsp
regtest2.hsp
sample01.hsp
sample02.hsp
sample03.hsp
sample04.hsp
sample05.hsp
sample06.hsp
sample10.hsp
sample11.hsp
sample12.hsp
sample13.hsp
sample14.hsp
sample17.hsp
sample19.hsp
sample21.hsp
sample_01_basic_bbs.hsp
sample_02_memolite.hsp
sample_03_vram_blob.hsp
sample_08_ball.hsp
sample_09_toge.hsp
sample_16_d3setlocal.hsp
SampleDiskInfo.hsp
sampview.hsp
server2.hsp
skybox.hsp
sndedit.hsp
stick.hsp
swfload.hsp
sysinfo.hsp
tamane1.hsp
tamane1.hsp
tamane2.hsp
tamane2.hsp
tamane3.hsp
tamane3.hsp
tamane4.hsp
tamane_tree.hsp
test1.hsp
test1.hsp
test1.hsp
test10.hsp
test11.hsp
test12.hsp
test13.hsp
test13.hsp
test2.hsp
test2.hsp
test2.hsp
test3.hsp
test3.hsp
test4.hsp
test4.hsp
test5.hsp
test5.hsp
test6.hsp
test6.hsp
test7.hsp
test7.hsp
test7.hsp
test7.hsp
test8.hsp
test9.hsp
test9.hsp
test_compile.hsp
test_editor.hsp
test_gettag.hsp
test_layerobj.hsp
test_mml.hsp
test_play.hsp
test_status.hsp
viewcalc.hsp
vtest2.hsp
wave.hsp
web.hsp
winmove.hsp
xsample_alphapaint.hsp
xsample_Astro.hsp
xsample_gimbal.hsp
xsample_Rocket.hsp
xsample_shiraho.hsp
xsample_verge.hsp

情報

プラグイン / モジュールhspint64.dll
バージョン1.03
作成日2021/06/13
著作者inovia
URLhttps://hsp.moe/
備考#include "hsp3_64.as"
#include "hspint64.as"
以上2つのファイルをインクルードすること。
(ソースコード上の記述個所は一番上を推奨)
タイプint64型拡張プラグイン
グループstrw
対応環境
  • Windows 版 HSP
移植のヒント64bit版 Windows のみ
hs ファイルhsphelp\hspint64.hs