Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

PHP

mysql change case, lower/upper only

//case
UPDATE `wpjb_job` SET `job_title`=LOWER(`job_title`)
https://snipt.net/embed/c751d3c57188a91a1c19d6c266dac03f/
https://snipt.net/raw/c751d3c57188a91a1c19d6c266dac03f/
c751d3c57188a91a1c19d6c266dac03f
php
PHP
2
2016-12-03T18:43:43
True
False
False
/api/public/snipt/34051/
mysql-change-case-lowerupper-only
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">//case</span> </span><span id="L-2"><a name="L-2"></a><span class="x">UPDATE `wpjb_job` SET `job_title`=LOWER(`job_title`)</span> </span></pre></div> </td></tr></table>
case, mysql

C

change the case of any ASCII character

1
2
3
4
# change the case of any ASCII character in C-based languages
uppercase = current & 0xFD; 
lowercase = current | 0x20; 
inverted_case = current ^ 0x20;
https://snipt.net/embed/f6b2385487332aaaee39b8924ced03cd/
https://snipt.net/raw/f6b2385487332aaaee39b8924ced03cd/
f6b2385487332aaaee39b8924ced03cd
c
C
4
2016-12-05T05:11:11
True
False
False
/api/public/snipt/22045/
change-the-case-of-any-ascii-character
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp"># change the case of any ASCII character in C-based languages</span> </span><span id="L-2"><a name="L-2"></a><span class="n">uppercase</span> <span class="o">=</span> <span class="n">current</span> <span class="o">&amp;</span> <span class="mh">0xFD</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="n">lowercase</span> <span class="o">=</span> <span class="n">current</span> <span class="o">|</span> <span class="mh">0x20</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="n">inverted_case</span> <span class="o">=</span> <span class="n">current</span> <span class="o">^</span> <span class="mh">0x20</span><span class="p">;</span> </span></pre></div> </td></tr></table>
ascii, case, conversion, text
Copyrighted, illegal, or inappropriate content? Email [email protected].