|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.316 2006/04/30 21:15:32 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.317 2006/05/18 00:50:08 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="functions">
|
4 | 4 | <title>Functions and Operators</title>
|
|
1244 | 1244 |
|
1245 | 1245 | <tbody>
|
1246 | 1246 | <row>
|
1247 |
| - <entry><literal><function>ascii</function>(<type>text</type>)</literal></entry> |
| 1247 | + <entry><literal><function>ascii</function>(<type>string</type>)</literal></entry> |
1248 | 1248 | <entry><type>int</type></entry>
|
1249 | 1249 | <entry><acronym>ASCII</acronym> code of the first byte of the argument</entry>
|
1250 | 1250 | <entry><literal>ascii('x')</literal></entry>
|
|
1274 | 1274 |
|
1275 | 1275 | <row>
|
1276 | 1276 | <entry>
|
1277 |
| - <literal><function>convert</function>(<parameter>string</parameter> |
1278 |
| - <type>text</type>, |
| 1277 | + <literal><function>convert</function>(<parameter>string</parameter> <type>text</type>, |
1279 | 1278 | <optional><parameter>src_encoding</parameter> <type>name</type>,</optional>
|
1280 | 1279 | <parameter>dest_encoding</parameter> <type>name</type>)</literal>
|
1281 | 1280 | </entry>
|
|
1320 | 1319 | </row>
|
1321 | 1320 |
|
1322 | 1321 | <row>
|
1323 |
| - <entry><literal><function>initcap</function>(<type>text</type>)</literal></entry> |
| 1322 | + <entry><literal><function>initcap</function>(<type>string</type>)</literal></entry> |
1324 | 1323 | <entry><type>text</type></entry>
|
1325 | 1324 | <entry>
|
1326 | 1325 | Convert the first letter of each word to uppercase and the
|
|
1332 | 1331 | </row>
|
1333 | 1332 |
|
1334 | 1333 | <row>
|
1335 |
| - <entry><literal><function>length</function>(<parameter>string</parameter> <type>text</type>)</literal></entry> |
| 1334 | + <entry><literal><function>length</function>(<parameter>string</parameter>)</literal></entry> |
1336 | 1335 | <entry><type>int</type></entry>
|
1337 | 1336 | <entry>
|
1338 | 1337 | Number of characters in <parameter>string</parameter>
|
|
1375 | 1374 | </row>
|
1376 | 1375 |
|
1377 | 1376 | <row>
|
1378 |
| - <entry><literal><function>md5</function>(<parameter>string</parameter> <type>text</type>)</literal></entry> |
| 1377 | + <entry><literal><function>md5</function>(<parameter>string</parameter>)</literal></entry> |
1379 | 1378 | <entry><type>text</type></entry>
|
1380 | 1379 | <entry>
|
1381 | 1380 | Calculates the MD5 hash of <parameter>string</parameter>,
|
|
1396 | 1395 | </row>
|
1397 | 1396 |
|
1398 | 1397 | <row>
|
1399 |
| - <entry><literal><function>quote_ident</function>(<parameter>string</parameter> text)</literal></entry> |
| 1398 | + <entry><literal><function>quote_ident</function>(<parameter>string</parameter>)</literal></entry> |
1400 | 1399 | <entry><type>text</type></entry>
|
1401 | 1400 | <entry>
|
1402 | 1401 | Return the given string suitably quoted to be used as an identifier
|
|
1410 | 1409 | </row>
|
1411 | 1410 |
|
1412 | 1411 | <row>
|
1413 |
| - <entry><literal><function>quote_literal</function>(<parameter>string</parameter> text)</literal></entry> |
| 1412 | + <entry><literal><function>quote_literal</function>(<parameter>string</parameter>)</literal></entry> |
1414 | 1413 | <entry><type>text</type></entry>
|
1415 | 1414 | <entry>
|
1416 | 1415 | Return the given string suitably quoted to be used as a string literal
|
|
1511 | 1510 | </row>
|
1512 | 1511 |
|
1513 | 1512 | <row>
|
1514 |
| - <entry><literal><function>to_ascii</function>(<type>text</type> |
1515 |
| - <optional>, <parameter>encoding</parameter></optional>)</literal></entry> |
| 1513 | + <entry><literal><function>to_ascii</function>(<parameter>string</parameter> <type>text</type> |
| 1514 | + <optional>, <parameter>encoding</parameter> <type>text</type></optional>)</literal></entry> |
1516 | 1515 | <entry><type>text</type></entry>
|
1517 | 1516 |
|
1518 | 1517 | <entry>
|
1519 |
| - Convert <parameter>text</parameter> to <acronym>ASCII</acronym> from another encoding |
| 1518 | + Convert <parameter>string</parameter> to <acronym>ASCII</acronym> from another encoding |
1520 | 1519 | <footnote>
|
1521 | 1520 | <para>
|
1522 | 1521 | The <function>to_ascii</function> function supports conversion from
|
|
1543 | 1542 |
|
1544 | 1543 | <row>
|
1545 | 1544 | <entry>
|
1546 |
| - <literal><function>translate</function>(<parameter>string</parameter> |
1547 |
| - <type>text</type>, |
| 1545 | + <literal><function>translate</function>(<parameter>string</parameter> <type>text</type>, |
1548 | 1546 | <parameter>from</parameter> <type>text</type>,
|
1549 | 1547 | <parameter>to</parameter> <type>text</type>)</literal>
|
1550 | 1548 | </entry>
|
|
0 commit comments