pydicom.valuerep.PersonNameUnicode¶
-
class
pydicom.valuerep.PersonNameUnicode(val, encodings)[source]¶ Unicode version of Person Name
Methods
__init__(val, encodings)Initialize the PN properties
capitalizeReturn a capitalized version of the string.
casefoldReturn a version of the string suitable for caseless comparisons.
centerReturn a centered string of length width.
count(sub[, start[, end]])Return the number of non-overlapping occurrences of substring sub in string S[start:end].
encode(encodings)Encode the unicode using the specified encoding
endswith(suffix[, start[, end]])Return True if S ends with the specified suffix, False otherwise.
expandtabsReturn a copy where all tab characters are expanded using spaces.
Return name as ‘Family-name, Given-name’
find(sub[, start[, end]])Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
format(*args, **kwargs)Return a formatted version of S, using substitutions from args and kwargs.
format_map(mapping)Return a formatted version of S, using substitutions from mapping.
formatted(format_str)Return a formatted string according to the format pattern
index(sub[, start[, end]])Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
isalnumReturn True if the string is an alpha-numeric string, False otherwise.
isalphaReturn True if the string is an alphabetic string, False otherwise.
isasciiReturn True if all characters in the string are ASCII, False otherwise.
isdecimalReturn True if the string is a decimal string, False otherwise.
isdigitReturn True if the string is a digit string, False otherwise.
isidentifierReturn True if the string is a valid Python identifier, False otherwise.
islowerReturn True if the string is a lowercase string, False otherwise.
isnumericReturn True if the string is a numeric string, False otherwise.
isprintableReturn True if the string is printable, False otherwise.
isspaceReturn True if the string is a whitespace string, False otherwise.
istitleReturn True if the string is a title-cased string, False otherwise.
isupperReturn True if the string is an uppercase string, False otherwise.
joinConcatenate any number of strings.
ljustReturn a left-justified string of length width.
lowerReturn a copy of the string converted to lowercase.
lstripReturn a copy of the string with leading whitespace removed.
maketransReturn a translation table usable for str.translate().
parse()Break down the components and name parts
partitionPartition the string into three parts using the given separator.
replaceReturn a copy with all occurrences of substring old replaced by new.
rfind(sub[, start[, end]])Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
rindex(sub[, start[, end]])Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
rjustReturn a right-justified string of length width.
rpartitionPartition the string into three parts using the given separator.
rsplitReturn a list of the words in the string, using sep as the delimiter string.
rstripReturn a copy of the string with trailing whitespace removed.
splitReturn a list of the words in the string, using sep as the delimiter string.
splitlinesReturn a list of the lines in the string, breaking at line boundaries.
startswith(prefix[, start[, end]])Return True if S starts with the specified prefix, False otherwise.
stripReturn a copy of the string with leading and trailing whitespace removed.
swapcaseConvert uppercase characters to lowercase and lowercase characters to uppercase.
titleReturn a version of the string where each word is titlecased.
translateReplace each character in the string using the given translation table.
upperReturn a copy of the string converted to uppercase.
zfillPad a numeric string with zeros on the left, to fill a field of the given width.