HexEncoding (C++) - RAD Studio Code Examples

Hex to Binary convert

I have converted my jpeg file as HEX code through hex converter. Now how to convert that hex to binary and save as Jpeg file on disk. Like: var declared as Hex code and then convert that var he...

RichTextLabelのBBCode

はじめに: Label nodes are great for displaying basic text, but they have limits. If you want to change the color of the text, or its alignment, that change affects all of the text in the Label node. Yo...

#godot #stringoperation
https://docs.godotengine.org/ja/stable/getting_started/scripting/gdscript/gdscript_format_string.html

var format_string = "We're waiting for {str}"
var actual_string = format_string.format({"str": "Godot"})

GDScriptフォーマット文字列

GDScriptは フォーマット文字列 と呼ばれる機能を提供します。これはテキストテンプレートを再利用して、異なるが似ている文字列を簡潔に作成することを可能にします。 フォーマット文字列は、特定のプレースホルダ文字シーケンスを含むことを除けば、通常の文字列とまったく同じです。これらのプレースホルダは、フォーマット文字列に渡されるパラメータに簡単に置き換えることができます。 例として、プレース...

GDScriptフォーマット文字列

GDScriptは フォーマット文字列 と呼ばれる機能を提供します。これはテキストテンプレートを再利用して、異なるが似ている文字列を簡潔に作成することを可能にします。 フォーマット文字列は、特定のプレースホルダ文字シーケンスを含むことを除けば、通常の文字列とまったく同じです。これらのプレースホルダは、フォーマット文字列に渡されるパラメータに簡単に置き換えることができます。 例として、プレース...

#godot #stringoperation

l_quiz.text = str(answer) + " > 5"

how do i make a number variable into text
https://godotengine.org/qa/101472/how-do-i-make-a-number-variable-into-text

how do i make a number variable into text - Godot Engine - Q&A

I'm trying to print the health number onto the screen to tell the player how much health they have

#stringoperation #string.h

strtod
http://www9.plala.or.jp/sgwr-t/lib/strtod.html

あの人の言っていたこれ
自分の用途では向かない気がする

strtod

#cppbuilder #mistake #stringoperation

関数内宣言
static const String xxx = IntToStr(aaa) + L"-" + IntToStr(bbb)

間違って実装
この場合、関数の一番最初の値が残り続ける

#cppbuilder #stringoperation

関連して、こうなります

#define STR_DONT_CARE L"X" // 不定 (設定として使わない)

...

res += L"," STR_DONT_CARE;

defineよりconst String宣言にすることもあり

#cppbuilder #stringoperation

String astr = L"11101" L",10235";

この書き方はソースの対称性を考えて使うこともあれば、使わないこともある

String astr = L"11101" + String().sprintf(L"%05d", 10235);
String bsgtr = L"11101" L"XXXXX";