Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Decamelize case

This block converts a camelized string into a lowercased one with underscores used as a separator.

The block accepts string or variable as an input, which is required.

The output of the block is an amended string according to the selected function.

In case the provided input is not a string, the block returns None.

Block XML representation

XML representation of text_decamelize block:

<xml xmlns="http://www.w3.org/1999/xhtml">
  <variables></variables>
  <block type="def" id="1" deletable="false" x="60" y="20">
    <statement name="STACK">
      <block type="dictionaries_set_index" id="drPsPp4^!s1ke`HwhF=8">
        <mutation at="true"></mutation>
        <value name="VALUE">
          <block type="message" id="(rmW*5FB%6Ih?EkAhrMU">
            <field name="OBJECT">msg</field>
          </block>
        </value>
        <value name="AT">
          <block type="text_decamelize" id="mq^bOa82fSjNK%|Ln!yM">
            <value name="VALUE">
              <block type="text" id="v|]~pThUd*9w)Si~W7KD">
                <field name="TEXT">SomeVariable</field>
              </block>
            </value>
          </block>
        </value>
        <value name="TO">
          <block type="text_decamelize" id="Tp7lxh(%;xe;e`,(u|n_">
            <value name="VALUE">
              <block type="text" id="*?`JrzRpl#mC%DVY(ZP1">
                <field name="TEXT">SomeText</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="statement_return" id="saANIQoGG+VWJdOm!T}d"></block>
        </next>
      </block>
    </statement>
  </block>
</xml>

Example of block usage

Results of "Decamelize" block

Results of “Decamelize” block