コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
strings.reverse
strings.reverse(STRING)
説明
入力文字列の逆の文字列を返します。
パラメータのデータ型
STRING
戻り値の型
STRING
コードサンプル
例 1
次の例では、短い文字列を渡します。
strings.reverse("str") = "rts" // The function returns 'rts'.
例 2
次の例では、空の文字列を渡します。
strings.reverse("") = ""
例 3
次の例では、回文を渡します。
strings.reverse("tacocat") = "tacocat"
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-29 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-29 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003estrings.reverse\u003c/code\u003e function reverses the order of characters in a given string.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a single string (\u003ccode\u003eSTRING\u003c/code\u003e) as input and returns a reversed string (\u003ccode\u003eSTRING\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003ePassing an empty string to \u003ccode\u003estrings.reverse\u003c/code\u003e will return an empty string.\u003c/p\u003e\n"],["\u003cp\u003eIf a palindrome is passed to this function it will return the same string.\u003c/p\u003e\n"]]],[],null,["### strings.reverse\n\nSupported in: \n[Rules](/chronicle/docs/detection/default-rules) [Search](/chronicle/docs/investigation/udm-search) \n\n strings.reverse(STRING)\n\n#### Description\n\nReturns a string that is the reverse of the input string.\n\n#### Param data types\n\n`STRING`\n\n#### Return type\n\n`STRING`\n\n#### Code samples\n\n##### Example 1\n\nThe following example passes a short string. \n\n strings.reverse(\"str\") = \"rts\" // The function returns 'rts'.\n\n##### Example 2\n\nThe following example passes an empty string. \n\n strings.reverse(\"\") = \"\"\n\n##### Example 3\n\nThe following example passes a palindrome. \n\n strings.reverse(\"tacocat\") = \"tacocat\""]]