File: check_string.py

package info (click to toggle)
citeproc-py 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,360 kB
  • sloc: xml: 15,402; python: 5,111; makefile: 18; sh: 7
file content (21 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from citeproc.string import String, NoCase


a = String('a ')
b = String(' b ')
nocase = NoCase('NoCase')
nocase2 = NoCase('NoCaseTwo')

c = a + nocase + b + nocase2

print(c)
print(c.upper())
print(c.lower())

print('test' + b)
print('test ' + nocase)
print(a + 'test')
print(nocase + ' test')

print('test ' + c)
print(c + ' test')