Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: RegexThay thế:: Attr
#include <string_ops.h>
Trình thiết lập thuộc tính tùy chọn cho RegexReplace .
Bản tóm tắt
Chức năng công cộng |
---|
ReplaceGlobal (bool x) | Nếu Đúng thì sự thay thế là toàn cục (nghĩa là tất cả các kết quả khớp của biểu thức chính quy pattern trong mỗi chuỗi đầu vào đều được viết lại), nếu không thì việc thay thế rewrite chỉ được thực hiện cho kết quả khớp pattern đầu tiên. |
Thuộc tính công khai
thay thế_global_
bool tensorflow::ops::RegexReplace::Attrs::replace_global_ = true
Chức năng công cộng
Thay thế toàn cầu
TF_MUST_USE_RESULT Attrs tensorflow::ops::RegexReplace::Attrs::ReplaceGlobal(
bool x
)
Nếu Đúng thì sự thay thế là toàn cục (nghĩa là tất cả các kết quả khớp của biểu thức chính quy pattern
trong mỗi chuỗi đầu vào đều được viết lại), nếu không thì việc thay thế rewrite
chỉ được thực hiện cho kết quả khớp pattern
đầu tiên.
Mặc định là đúng
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::RegexReplace::Attrs Struct Reference\n\ntensorflow::ops::RegexReplace::Attrs\n====================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [RegexReplace](/versions/r2.0/api_docs/cc/class/tensorflow/ops/regex-replace#classtensorflow_1_1ops_1_1_regex_replace).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------|--------|\n| [replace_global_](#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs_1a5af07627be1e5135a19c9447eed1b91d)` = true` | `bool` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ReplaceGlobal](#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs_1a9d0355cf5575240f3f5f4f053ad64bd1)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs) If True, the replacement is global (that is, all matches of the `pattern` regular expression in each input string are rewritten), otherwise the `rewrite` substitution is only made for the first `pattern` match. |\n\nPublic attributes\n-----------------\n\n### replace_global_\n\n```scdoc\nbool tensorflow::ops::RegexReplace::Attrs::replace_global_ = true\n``` \n\nPublic functions\n----------------\n\n### ReplaceGlobal\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RegexReplace::Attrs::ReplaceGlobal(\n bool x\n)\n``` \nIf True, the replacement is global (that is, all matches of the `pattern` regular expression in each input string are rewritten), otherwise the `rewrite` substitution is only made for the first `pattern` match.\n\nDefaults to true"]]