Update aus Driver-Doku
Change-Id: Ib3d5c973c1d09b9bed964c4c7fa486788eda54c4
diff --git a/doc/efun/to_array b/doc/efun/to_array
index 21b1a93..afc91c1 100644
--- a/doc/efun/to_array
+++ b/doc/efun/to_array
@@ -1,30 +1,29 @@
SYNOPSIS
- mixed *to_array(string arg);
- mixed *to_array(symbol arg);
- mixed *to_array(quotedarray arr);
- mixed *to_array(mixed *arg);
- mixed *to_array(struct);
+ mixed * to_array(string arg)
+ mixed * to_array(bytes arg)
+ mixed * to_array(symbol arg)
+ mixed * to_array(quotedarray arr)
+ mixed * to_array(mixed *arg)
+ mixed * to_array(struct arg)
(int*)<value>
BESCHREIBUNG
Strings und Symbole werden umgewandelt in ein Integer-Array, das aus
- den Zeichen von <arg> besteht.
+ den Zeichen von <arg> besteht, wobei 0 == '\0' als letzes Zeichen
+ im Array gespeichert wird.
+
+ Bytefolgen werden in ein Array dieser Bytes konvertiert.
Gequotete Arrays werden "entquotet", und Arrays bleiben, wie sie sind.
- Structs werden in normale Arrays umgewandelt.
-
-BEISPIELE:
- to_array("12") liefert ({33,34}).
-
-BUGS
+FEHLER
Die Cast-Schreibweise funktioniert nur, wenn der genaue Wert von
<value> zum Zeitpunkt der Kompilierung bekannt ist. Dies wird
nicht geaendert werden, da die Funktionsform verwendet werden kann.
-HISTORY
- LDMud 3.3.250 added structs to the accepted data types.
+GESCHICHTE
+ LDMud 3.3.250 fuegte den Support von structs hinzu.
SIEHE AUCH
- to_int(E), to_string(E), to_struct(E)
+ to_int(E), to_string(E)
diff --git a/doc/efun/to_bytes b/doc/efun/to_bytes
new file mode 100644
index 0000000..9740592
--- /dev/null
+++ b/doc/efun/to_bytes
@@ -0,0 +1,23 @@
+SYNOPSIS
+ bytes to_bytes(string unicode, string encoding)
+ bytes to_bytes(int* characters, string encoding)
+ bytes to_bytes(bytes bytesequence)
+ bytes to_bytes(int* bytes)
+
+DESCRIPTION
+ The first argument is converted to a byte sequence.
+
+ The first two variants convert a unicode string resp. a sequence
+ of unicode characters to a byte sequence that represents
+ the encoded string. The second argument denotes the name of
+ the encoding to use.
+
+ The third variant just returns the argument.
+
+ The fourth variant converts an array of bytes to a byte string.
+
+HISTORY
+ Introduced in LDMud 3.6.0.
+
+SEE ALSO
+ to_text(E), to_string(E), to_array(E)
diff --git a/doc/efun/to_text b/doc/efun/to_text
new file mode 100644
index 0000000..485f94a
--- /dev/null
+++ b/doc/efun/to_text
@@ -0,0 +1,23 @@
+SYNOPSIS
+ string to_text(bytes bytesequence, string encoding)
+ string to_text(int* bytes, string encoding)
+ string to_text(string unicode)
+ string to_text(int* characters)
+
+DESCRIPTION
+ The first argument is converted to a unicode string.
+
+ The first two variants convert an encoded text, given as
+ a sequence of bytes, to string. The second argument denotes
+ the name of the encoding used to produce the byte sequence.
+
+ The third variant just returns the argument.
+
+ The fourth variant converts a sequence of unicode characters
+ to string.
+
+HISTORY
+ Introduced in LDMud 3.6.0.
+
+SEE ALSO
+ to_bytes(E), to_string(E), to_array(E)