Home
last modified time | relevance | path

Searched refs:_PT (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/dports/multimedia/libxspf/libxspf-1.2.0/test/
H A DOfficialSuite.cpp31 # define SEP _PT("\\")
33 # define SEP _PT("/")
40 #define V0_FAIL_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_0") SEP _PT("fail") …
41 #define V0_PASS_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_0") SEP _PT("pass") …
42 #define V1_FAIL_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_1") SEP _PT("fail") …
43 #define V1_PASS_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_1") SEP _PT("pass") …
197 _PT(" File : %s\n") in runCase()
198 _PT(" Line : %i\n") in runCase()
200 _PT("Error code : %i\n") in runCase()
212 _PT(" File : %s\n") in runCase()
[all …]
H A DChunkCallbackSuite.cpp70 _PT("\t<trackList />\n") in validOneGo()
71 _PT("</playlist>\n"); in validOneGo()
112 validLines[ 0] = _PT("<"); in validGrowSize()
113 validLines[ 1] = _PT("?x"); in validGrowSize()
114 validLines[ 2] = _PT("ml "); in validGrowSize()
115 validLines[ 3] = _PT("vers"); in validGrowSize()
116 validLines[ 4] = _PT("ion=\""); in validGrowSize()
117 validLines[ 5] = _PT("1.0\" e"); in validGrowSize()
118 validLines[ 6] = _PT("ncoding"); in validGrowSize()
122 validLines[ 7] = _PT("=\"UTF-8\""); in validGrowSize()
[all …]
H A DDateTimeSuite.cpp30 TEST_ASSERT(!XspfDateTime::extractDateTime(_PT("abc"), &dateTime)); in normal_text()
55 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("0001-01-01T00:00:00-13:59"), &dateTime)); in shift_maximum_1()
60 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("0001-01-01T00:00:00-14:00"), &dateTime)); in shift_maximum_2()
65 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("0001-01-01T00:00:00Z"), &dateTime)); in shift_zero_zed()
70 TEST_ASSERT(!XspfDateTime::extractDateTime(_PT("0001-01-01T00:00:00z"), &dateTime)); in shift_zero_lowercase()
75 TEST_ASSERT(!XspfDateTime::extractDateTime(_PT("0001-01-01t00:00:00"), &dateTime)); in shift_zero_omitted()
80 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("9999-12-31T23:59:59+13:59"), &dateTime)); in all_maximum_2()
85 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("9999-12-31T23:59:59+14:00"), &dateTime)); in all_maximum_1()
130 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("1600-02-29T00:00:00"), &dateTime)); in leap_year_1()
135 TEST_ASSERT(XspfDateTime::extractDateTime(_PT("2004-02-29T00:00:00"), &dateTime)); in leap_year_2()
[all …]
H A DWhiteSpaceSuite.cpp63 WHITE_SPACE_ALL_WHITE_TEST(_PT(" \x0d\x0a\t"), 4, true) in allWhiteWhite()
68 WHITE_SPACE_ALL_WHITE_TEST(_PT("X"), 1, false) in allWhiteBlack()
73 WHITE_SPACE_ALL_WHITE_TEST(_PT(" X "), 5, false) in allWhiteMixed()
78 WHITE_SPACE_CUT_OFF_TEST(_PT(" X"), 3, 2, 1) in cutOffHeadOne()
83 WHITE_SPACE_CUT_OFF_TEST(_PT(" X X"), 5, 2, 3) in cutOffHeadTwo()
88 WHITE_SPACE_CUT_OFF_TEST(_PT("X "), 3, 0, 1) in cutOffTailOne()
93 WHITE_SPACE_CUT_OFF_TEST(_PT("X X "), 5, 0, 3) in cutOffTailTwo()
98 WHITE_SPACE_CUT_OFF_TEST(_PT(" X "), 5, 2, 1) in cutOffMidOne()
103 WHITE_SPACE_CUT_OFF_TEST(_PT(" X X "), 7, 2, 3) in cutOffMidTwo()
108 WHITE_SPACE_CUT_OFF_TEST(_PT("X"), 1, 0, 1) in cutOffZero()
[all …]
H A DReadWriteSuite.cpp79 XML_Char const * const baseUriOne = _PT("http://example.org/one/"); in testRelativeUris()
80 XML_Char const * const baseUriTwo = _PT("http://example.org/two/"); in testRelativeUris()
82 XML_Char const * const imageUriOne = _PT("http://example.org/one/image.png"); in testRelativeUris()
83 XML_Char const * const imageUriTwo = _PT("http://example.org/two/image.png"); in testRelativeUris()
180 expected = _PT("http://example.org/a/b/c/d/0"); in addTrack()
183 expected = _PT("http://example.org/a/b/e/1"); in addTrack()
186 expected = _PT("http://example.org/a/b/f/2"); in addTrack()
189 expected = _PT("http://example.org/a/b/3"); in addTrack()
192 expected = _PT("http://example.org/g/4"); in addTrack()
195 expected = _PT("http://example.org/h/i/5"); in addTrack()
[all …]
H A DMaliciousXmlSuite.cpp63 NULL, _PT("http://example.org/")); in testDisabled()
69 NULL, _PT("http://example.org/")); in testDisabled()
75 NULL, _PT("http://example.org/")); in testDisabled()
100 NULL, _PT("http://example.org/")); in testLengthPerEntityValue()
106 NULL, _PT("http://example.org/")); in testLengthPerEntityValue()
132 NULL, _PT("http://example.org/")); in testLookupSumPerEntityValue()
138 NULL, _PT("http://example.org/")); in testLookupSumPerEntityValue()
165 NULL, _PT("http://example.org/")); in testLookupDepthPerEntityValue()
171 NULL, _PT("http://example.org/")); in testLookupDepthPerEntityValue()
209 NULL, _PT("http://example.org/")); in runMaliciousXml()
/dports/multimedia/libxspf/libxspf-1.2.0/examples/read/
H A Dread.cpp81 open(_PT("Track")); in addTrack()
99 open(_PT("Props")); in setProps()
133 PORT_PRINTF(_PT("%s\n"), type); in open()
137 PORT_PRINTF(_PT("\n")); in close()
142 PORT_PRINTF(_PT("\t%s: -\n"), key); in printKeyValue()
150 PORT_PRINTF(_PT("\t%s: -\n"), key); in printKeyValue()
158 PORT_PRINTF(_PT("\t%s: -\n"), key); in printKeyValue()
162 value->getSeconds(), (value->getDistHours() < 0) ? _PT("-") : _PT("+"), in printKeyValue()
168 PORT_PRINTF(_PT("\t%s: %i entr%s\n"), key, size, (size == 1) ? _PT("y") : _PT("ies")); in printHelper()
174 printHelper(_PT("Links"), size); in printLinkSummay()
[all …]
/dports/multimedia/libxspf/libxspf-1.2.0/examples/write/
H A Dwrite.cpp57 props.giveTitle(_PT("Now playing"), XspfData::COPY); in fillProps()
58 props.giveAnnotation(_PT("Well, ..."), XspfData::COPY); in fillProps()
70 props.giveAppendLink(_PT("store:url"), XspfData::COPY, in fillProps()
71 _PT("http://expensive/dot/com"), XspfData::COPY); in fillProps()
72 props.giveAppendMeta(_PT("tag:meta:year"), XspfData::COPY, _PT("2006"), XspfData::COPY); in fillProps()
89 track.giveAlbum(_PT("Phobia"), XspfData::COPY); in fillTrack()
95 _PT("http://website"), XspfData::COPY); in fillTrack()
98 track.giveAppendMeta(_PT("tag:meta:year"), XspfData::COPY, _PT("2006"), XspfData::COPY); in fillTrack()
125 ::namespaceKey, _PT("po")); in PORT_MAIN()
139 PORT_PRINTF(_PT("Could not write to file.\n")); in PORT_MAIN()
[all …]
/dports/multimedia/libxspf/libxspf-1.2.0/src/
H A DXspfReader.cpp535 _PT("xml:base"), _PT("URI")))) { in handleXmlBaseAttribute()
1702 XSPF_NS_HOME, _PT("image"), _PT("URI")))) { in handleEndTwo()
1714 XSPF_NS_HOME, _PT("info"), _PT("URI")))) { in handleEndTwo()
1726 XSPF_NS_HOME, _PT("license"), _PT("URI")))) { in handleEndTwo()
1738 XSPF_NS_HOME, _PT("link"), _PT("URI")))) { in handleEndTwo()
1752 XSPF_NS_HOME, _PT("location"), _PT("URI")))) { in handleEndTwo()
1927 XSPF_NS_HOME, _PT("image"), _PT("URI")))) { in handleEndFour()
1939 XSPF_NS_HOME, _PT("info"), _PT("URI")))) { in handleEndFour()
1951 XSPF_NS_HOME, _PT("link"), _PT("URI")))) { in handleEndFour()
2350 _PT("rel"), _PT("URI")))) { in handleMetaLinkAttribs()
[all …]
H A DXspfDateTime.cpp247 final[len] = _PT('\0'); in PORT_ANTOI()
278 if ((::PORT_STRNCMP(text, _PT("-01"), 3) < 0) || (::PORT_STRNCMP(_PT("-12"), text, 3) < 0)) { in extractDateTime()
286 if ((::PORT_STRNCMP(text, _PT("-01"), 3) < 0) || (::PORT_STRNCMP(_PT("-31"), text, 3) < 0)) { in extractDateTime()
347 if (*text == _PT('.')) { in extractDateTime()
350 while ((*text >= _PT('0')) && (*text <= _PT('9'))) { in extractDateTime()
367 case _PT('+'): in extractDateTime()
368 case _PT('-'): in extractDateTime()
388 if (*text != _PT('\0')) { in extractDateTime()
399 case _PT('Z'): in extractDateTime()
401 if (*text != _PT('\0')) { in extractDateTime()
[all …]
H A DXspfPropsWriter.cpp199 writePrimitive(entry->first ? _PT("location") in writeAttribution()
200 : _PT("identifier"), relUri); in writeAttribution()
217 (dateTime->getDistHours() < 0) ? _PT("-") : _PT("+"), in writeDate()
219 writePrimitive(_PT("date"), buffer); in writeDate()
228 writePrimitive(_PT("identifier"), relUri); in writeIdentifier()
238 writePrimitive(_PT("license"), relUri); in writeLicense()
248 writePrimitive(_PT("location"), relUri); in writeLocation()
266 nsRegs[1] = _PT(""); in writePlaylistOpen()
288 atts[0 + 2] = _PT("xml:base"); in writePlaylistOpen()
294 _PT("playlist"), atts, nsRegs); in writePlaylistOpen()
[all …]
H A DXspfIndentFormatter.cpp146 *this->getOutput() << _PT("\n"); in writeStart()
150 *this->getOutput() << _PT('\t'); in writeStart()
154 *this->getOutput() << _PT('<') << name; in writeStart()
156 *this->getOutput() << _PT(' ') << atts[0] << _PT("=\"") << atts[1] << _PT("\""); in writeStart()
159 *this->getOutput() << _PT(">"); in writeStart()
169 *this->getOutput() << _PT('\n'); in writeEnd()
171 *this->getOutput() << _PT('\t'); in writeEnd()
180 *this->getOutput() << _PT("</") << name << _PT('>'); in writeEnd()
183 *this->getOutput() << _PT("\n"); in writeEnd()
H A DXspfSeamlessFormatter.cpp113 *this->getOutput() << _PT('<') << name; in writeStart()
115 *this->getOutput() << _PT(' ') << atts[0] << _PT("=\"") << atts[1] << _PT("\""); in writeStart()
118 *this->getOutput() << _PT(">"); in writeStart()
123 *this->getOutput() << _PT("</") << name << _PT('>'); in writeEnd()
H A DXspfXmlFormatter.cpp447 case _PT('\0'): in writeCharacterData()
451 case _PT('<'): in writeCharacterData()
453 *this->d->output << _PT("&lt;"); in writeCharacterData()
458 case _PT('&'): in writeCharacterData()
460 *this->d->output << _PT("&amp;"); in writeCharacterData()
465 case _PT('\''): in writeCharacterData()
467 *this->d->output << _PT("&apos;"); in writeCharacterData()
472 case _PT('"'): in writeCharacterData()
474 *this->d->output << _PT("&quot;"); in writeCharacterData()
479 case _PT(']'): in writeCharacterData()
[all …]
H A DXspfDataWriter.cpp162 writePrimitive(_PT("image"), relUri); in writeImage()
174 writePrimitive(_PT("info"), relUri); in writeInfo()
185 writePrimitive(_PT("annotation"), annotation); in writeAnnotation()
195 writePrimitive(_PT("creator"), creator); in writeCreator()
205 writePrimitive(_PT("title"), title); in writeTitle()
221 XML_Char const * atts[3] = {_PT("rel"), entry->first, NULL}; in writeLinks()
222 this->d->output->writeHomeStart(_PT("link"), atts); in writeLinks()
226 this->d->output->writeHomeEnd(_PT("link")); in writeLinks()
244 XML_Char const * atts[3] = {_PT("rel"), entry->first, NULL}; in writeMetas()
245 this->d->output->writeHomeStart(_PT("meta"), atts); in writeMetas()
[all …]
H A DXspfTrackWriter.cpp157 writePrimitive(_PT("album"), album); in writeAlbum()
166 writePrimitive(_PT("duration"), duration); in writeDuration()
175 writePrimitive(_PT("trackNum"), trackNum); in writeTrackNum()
191 writePrimitive(_PT("location"), relUri); in writeLocations()
208 writePrimitive(_PT("identifier"), relUri); in writeIdentifiers()
215 this->getOutput()->writeHomeEnd(_PT("track")); in writeTrackClose()
221 this->getOutput()->writeHomeStart(_PT("track"), atts); in writeTrackOpen()
H A DXspfToolbox.cpp331 || ((number == 0) && ::PORT_STRCMP(text, _PT("0")))) { in extractInteger()
349 case _PT('\0'): in isWhiteSpace()
352 case _PT(' '): in isWhiteSpace()
353 case _PT('\t'): in isWhiteSpace()
354 case _PT('\x0a'): in isWhiteSpace()
355 case _PT('\x0d'): in isWhiteSpace()
383 case _PT(' '): in cutOffWhiteSpace()
384 case _PT('\t'): in cutOffWhiteSpace()
385 case _PT('\x0a'): in cutOffWhiteSpace()
386 case _PT('\x0d'): in cutOffWhiteSpace()
/dports/multimedia/libxspf/libxspf-1.2.0/include/xspf/
H A DXspfReader.h61 #define XSPF_READER_TEXT_ONE_EXPAT_ERROR _PT("Expat error '%s'")
65 …NE_WRONG_ROOT_NAME _PT("Root element must be '") XSPF_NS_HOME XSPF_NS_SEP…
69 #define XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(name) _PT("Attribute '") name _PT("…
70 …ER_TEXT_ZERO_ELEMENT_MISSING(ns, name) _PT("Element '") ns XSPF_NS_SEP_STRING name _…
71 …ER_TEXT_ZERO_ELEMENT_MISSING_VERSION_ZERO(ns, name) _PT("Element '") ns XSPF_NS_SEP_STRING name _…
73 …R_TEXT_ZERO_TOO_MANY_ELEMENTS(ns, name) _PT("Only one '") ns XSPF_NS_SEP_STRING name _…
74 …XT_ZERO_WRONG_ATTRIBUTE_TYPE(attr, type) _PT("Attribute '") attr _PT("' is not a valid ") t…
75 …G_CONTENT_TYPE(ns, elem, type) _PT("Content of '") ns XSPF_NS_SEP_STRING elem _PT("' is not a…
76 …_TEXT_ZERO_TEXT_FORBIDDEN(ns, elem) _PT("Content of '") ns XSPF_NS_SEP_STRING elem
77 #define XSPF_READER_TEXT_ZERO_KEY_WITHOUT_VERSION(name) _PT("Attribute '") name _PT("…
[all …]
H A DXspfDefines.h53 #define XSPF_NS_HOME _PT("http://xspf.org/ns/0/") ///< XSPF namespace URI
55 #define XSPF_NS_SEP_CHAR _PT(' ') ///< Namespace separator as character
56 #define XSPF_NS_SEP_STRING _PT(" ") ///< Namespace separator as string
57 #define XML_NS_HOME _PT("http://www.w3.org/XML/1998/namespace") ///< XML namespace URI
140 #define _PT(x) XSPF_OS_SELECT(_T(x), x) macro
/dports/multimedia/libxspf/libxspf-1.2.0/src/ProjectOpus/
H A DProjectOpusPlaylistExtensionReader.cpp56 …CT_OPUS_TEXT_ZERO_ATTRIBUTE_OUT_OF_SET(attr, set) _PT("Attribute '") attr _PT("' must be in ") set…
145 || ::PORT_STRCMP(fullName + PROJECT_OPUS_NS_HOME_LEN + 1, _PT("info"))) { in handleExtensionStart()
188 XSPF_READER_TEXT_ZERO_ELEMENT_MISSING(PROJECT_OPUS_NS_HOME, _PT("info"))); in handleExtensionEnd()
220 if (!::PORT_STRCMP(atts[i], _PT("type"))) { in handleInfoAttribs()
222 if (!::PORT_STRCMP(atts[i], _PT("album"))) { in handleInfoAttribs()
224 } else if (!::PORT_STRCMP(atts[i + 1], _PT("playlist"))) { in handleInfoAttribs()
228 PROJECT_OPUS_TEXT_ZERO_ATTRIBUTE_OUT_OF_SET(_PT("type"), _PT("{'album', 'playlist'}"))); in handleInfoAttribs()
233 } else if (!::PORT_STRCMP(atts[i], _PT("nid"))) { in handleInfoAttribs()
237 XSPF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(_PT("nid"), _PT("unsigned integer"))); in handleInfoAttribs()
257 XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("type"))); in handleInfoAttribs()
[all …]
H A DProjectOpusPlaylistExtensionWriter.cpp131 _PT("type"), typeText, in writeExtensionBody()
132 _PT("nid"), nodeIdText, in writeExtensionBody()
136 _PT("info"), in writeExtensionBody()
140 _PT("info")); in writeExtensionBody()
152 _PT("po"), // Recommendation only! in getNamespaceRegs()
H A DProjectOpusPlaylistExtension.cpp59 ::applicationURI = _PT("http://www.projectopus.com");
163 return _PT("album"); in typeToString()
166 return _PT("playlist"); in typeToString()
175 ::PORT_SNPRINTF(nodeIdText, charCount, _PT("%d"), nodeId); in nodeIdToString()
/dports/multimedia/libxspf/libxspf-1.2.0/test/ProjectOpus/
H A DProjectOpusSuite.cpp37 # define SEP _PT("\\")
39 # define SEP _PT("/")
76 _PT("http://www.example.org/")); in runCase()
80 _PT(" File : %s\n") in runCase()
81 _PT(" Line : %i\n") in runCase()
82 _PT("Error text : '%s'\n") in runCase()
83 _PT("Error code : %i\n") in runCase()
84 _PT(" Expected : %i\n\n"), in runCase()
108 runCase(_PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("ProjectOpus") SEP _PT("Example.xspf"), reader, in parse_example()
/dports/devel/py-jedi/jedi-0.18.0/jedi/third_party/django-stubs/django-stubs/utils/
H A Dencoding.pyi14 _PT = TypeVar("_PT", None, int, float, Decimal, datetime.datetime, datetime.date, datetime.time)
18 def smart_text(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) -…
25 def force_text(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) -…
33 def smart_bytes(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) …
37 def force_bytes(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) …
/dports/devel/pytype/pytype-2021.9.9/pytype/typeshed/stdlib/@python2/
H A Dtraceback.pyi4 _PT = Tuple[str, int, str, Optional[str]]
17 def extract_tb(tb: Optional[TracebackType], limit: Optional[int] = ...) -> List[_PT]: ...
18 def extract_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> List[_PT]: ...
19 def format_list(extracted_list: List[_PT]) -> List[str]: ...

12345678910>>...17