str_from_code

Function str_from_code 

Source
pub fn str_from_code(x: i32) -> SmtString
Expand description

Single-character string with character code x

  • Return a single-character string if 0 <= x <= 0x2ffff
  • Return the empty string otherwise

ยงExamples

use aws_smt_strings::smt_strings::*;

assert_eq!(str_from_code(-19), EMPTY);
assert_eq!(str_from_code(1202), SmtString::from(1202));
assert_eq!(str_from_code(0x30000), EMPTY);