string.carbon 536 B

1234567891011121314151617
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/uint.carbon
  6. // --- min_prelude/parts/string.carbon
  7. // A minimal prelude for testing using `Int` or `i32`; required for arrays.
  8. package Core library "prelude/parts/string";
  9. import library "prelude/parts/uint";
  10. class String {
  11. private var ptr: u8*;
  12. private var size: u64;
  13. }