Google is committed to advancing racial equity for Black communities.
See how.
nl::Weave::โปรไฟล์::ReferencedString
#include <src/lib/profiles/common/WeaveMessage.h>
วิธีจัดการสตริงใน Weave มีดังนี้
สรุป
คลาสนี้มีรูปแบบ 8 บิตและ 16 บิต
การสืบทอด
รับค่าจาก:
nl::Weave::Profiles::RequarantinePacketBuffer
เครื่องมือสร้างและตัวสร้าง
|
ReferencedString(void)
ตัวสร้างที่ไม่มีอาร์กิวเมนต์สําหรับสตริงที่อ้างอิง
|
แอตทริบิวต์สาธารณะ
isShort
bool isShort
ความยาว
uint16_t theLength
สตริง
char * theString
ฟังก์ชันสาธารณะ
สตริงที่อ้างอิง
ReferencedString(
void
)
ตัวสร้างที่ไม่มีอาร์กิวเมนต์สําหรับสตริงที่อ้างอิง
init
WEAVE_ERROR init(
uint16_t aLength,
char *aString,
System::PacketBuffer *aBuffer
)
init
WEAVE_ERROR init(
uint16_t aLength,
char *aString
)
init
WEAVE_ERROR init(
uint8_t aLength,
char *aString,
System::PacketBuffer *aBuffer
)
init
WEAVE_ERROR init(
uint8_t aLength,
char *aString
)
โอเปอเรเตอร์==
bool operator==(
const ReferencedString &
) const
รายละเอียด |
พารามิเตอร์ |
&aReferencedString
|
สตริงที่ต้องตรวจสอบ
|
|
แสดงผลค่า |
true
|
สตริงเท่ากัน
|
false
|
สตริงไม่เท่ากัน
|
|
สตริงสิ่งพิมพ์
char * printString(
void
)
รายละเอียด |
การคืนสินค้า
|
สตริงที่พิมพ์ได้
|
ฟังก์ชันสาธารณะแบบคงที่
แยกวิเคราะห์
WEAVE_ERROR parse(
MessageIterator &,
ReferencedString &
)
รายละเอียด |
พารามิเตอร์ |
&i
|
ตัวเอียงทับข้อความที่กําลังแยกวิเคราะห์
|
&aString
|
สถานที่ที่จะแสดงผลลัพธ์ของการแยกวิเคราะห์
|
|
แสดงผลค่า |
WEAVE_NO_ERROR
|
แยกวิเคราะห์สตริงเรียบร้อยแล้ว
|
WEAVE_ERROR_INVALID_STRING_LENGTH
|
สตริงยาวเกินไปสําหรับบัฟเฟอร์ (ไม่ควรเกิดขึ้น)
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2018-06-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]