gpt4 book ai didi

java - Java 字符串 UTF8 和 String8 之间的区别?

转载 作者:行者123 更新时间:2023-11-30 03:57:33 27 4
gpt4 key购买 nike

String8(C++) 和 Java 中的 String 有什么区别?

最佳答案

据我所知:

 Property                    java.lang.String    android::String8
================================================================
language Java C++
Unicode yes yes
char width 16 8
encoding UTF-16 UTF-8
mutability immutable mutable
bunch of file path methods no yes
attitude to Darwin indifferent annoyed (line 47)

它们都是Unicode字符串类型;相似之处似乎到此为止。

关于java - Java 字符串 UTF8 和 String8 之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22794924/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com