---
schema_version: "1"
id: fb6dc13f556b5876e993d81c547399ac5ee61a129f502fc6cd0c6e3aac039bbc
title: camelize
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-strings-functions-camelize.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-strings-functions-camelize
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6523bfc5c2b8a6ff8154fba0db255054a0d8033fec8fb93535cbf5c6b49e31b9
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# camelize

## [](#camelize1)camelize(text: String): String

文字列内のアンダースコアに基づいて、キャメルケースの文字列を返します。

文字列の先頭のアンダースコアを含め、すべてのアンダースコアを削除します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>text</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">キャメルケースに変換する文字列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、アンダースコアを含む文字列をキャメルケースに変換します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::Strings
output application/json
---
{
  "a" : camelize("customer_first_name"),
  "b" : camelize("_name_starts_with_underscore")
}
```

#### [](#出力)出力

```JSON
{
   "a": "customerFirstName",
   "b": "nameStartsWithUnderscore"
 }
```

## [](#camelize2)camelize(text: Null): Null

`camelize`​ を ​`null`​ 値に使用できるようにするヘルパー関数。