Skip to content

2.3 Strings

Himxh edited this page Sep 12, 2026 · 1 revision

字符串 String

定义 define

string a = "Hello,world!";

操作 operation

1 直接操作 directly
var str = "Hello";
str[0] = 'h'; // ->"hello"
str[4] = 33; // ->"hell!"
2 通过字符串函数操作 by functions
这将会在函数章节提及。
This will be mentioned in the function section.

HimDSL 文档 / Documentation

入门 / Getting Started

语言基础 / Language Basics

控制流 / Control Flow

函数 / Functions

数据结构 / Data Structures

自定义类型 / Custom Types

Minecraft 集成 / Minecraft Integration

事件与调度 / Events & Scheduling

GUI 系统 / GUI System

内置函数参考 / Built-ins Reference

进阶 / Advanced

扩展 API / Extension API

你真的需要 API 吗?/ Do you really need the API?

Clone this wiki locally