Macro libyml::copy

source ·
macro_rules! copy {
    ($string_a:expr, $string_b:expr) => { ... };
}
Expand description

Copies the content of a string to another string.

This macro copies the content of a string to another string. It handles different Unicode character encodings by checking the first byte of the character. If the character is a single-byte character, it is copied directly. If the character is a multi-byte character, it is copied byte by byte.

§Parameters

  • string_a: A mutable reference to the destination string where the content will be copied.
  • string_b: A mutable reference to the source string from which the content will be copied.

§Return

This macro does not return a value. It copies the content of a string to another string.