|
| 1 | +/* |
| 2 | +
|
| 3 | +Unicode implementation based on original code by Fredrik Lundh, |
| 4 | +modified by Marc-Andre Lemburg <[email protected]>. |
| 5 | +
|
| 6 | +Major speed upgrades to the method implementations at the Reykjavik |
| 7 | +NeedForSpeed sprint, by Fredrik Lundh and Andrew Dalke. |
| 8 | +
|
| 9 | +Copyright (c) Corporation for National Research Initiatives. |
| 10 | +
|
| 11 | +-------------------------------------------------------------------- |
| 12 | +The original string type implementation is: |
| 13 | +
|
| 14 | + Copyright (c) 1999 by Secret Labs AB |
| 15 | + Copyright (c) 1999 by Fredrik Lundh |
| 16 | +
|
| 17 | +By obtaining, using, and/or copying this software and/or its |
| 18 | +associated documentation, you agree that you have read, understood, |
| 19 | +and will comply with the following terms and conditions: |
| 20 | +
|
| 21 | +Permission to use, copy, modify, and distribute this software and its |
| 22 | +associated documentation for any purpose and without fee is hereby |
| 23 | +granted, provided that the above copyright notice appears in all |
| 24 | +copies, and that both that copyright notice and this permission notice |
| 25 | +appear in supporting documentation, and that the name of Secret Labs |
| 26 | +AB or the author not be used in advertising or publicity pertaining to |
| 27 | +distribution of the software without specific, written prior |
| 28 | +permission. |
| 29 | +
|
| 30 | +SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO |
| 31 | +THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 32 | +FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR |
| 33 | +ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 34 | +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 35 | +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
| 36 | +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 37 | +-------------------------------------------------------------------- |
| 38 | +
|
| 39 | +*/ |
| 40 | + |
1 | 41 | // PyUnicode_Format() implementation |
2 | 42 |
|
3 | 43 | #include "Python.h" |
|
0 commit comments