Module: Windows::Path
- Defined in:
- lib/windows/path.rb
Constant Summary collapse
- GCT_INVALID =
These constants are for use by the PathGetCharType() function.
0x0000
- GCT_LFNCHAR =
Character is not valid in a path.
0x0001
- GCT_SHORTCHAR =
Character is valid in a long file name.
0x0002
- GCT_WILD =
Character is valid in a short (8.3) file name.
0x0004
- GCT_SEPARATOR =
Character is a wildcard character.
0x0008
- URL_UNESCAPE =
Character is a path separator.
0x10000000
- URL_ESCAPE_UNSAFE =
0x20000000
- URL_PLUGGABLE_PROTOCOL =
0x40000000
- URL_WININET_COMPATIBILITY =
0x80000000
- URL_DONT_ESCAPE_EXTRA_INFO =
0x02000000
- URL_DONT_UNESCAPE_EXTRA_INFO =
URL_DONT_ESCAPE_EXTRA_INFO
- URL_BROWSER_MODE =
URL_DONT_ESCAPE_EXTRA_INFO
- URL_ESCAPE_SPACES_ONLY =
0x04000000
- URL_DONT_SIMPLIFY =
0x08000000
- URL_NO_META =
URL_DONT_SIMPLIFY
- URL_UNESCAPE_INPLACE =
0x00100000
- URL_CONVERT_IF_DOSPATH =
0x00200000
- URL_UNESCAPE_HIGH_ANSI_ONLY =
0x00400000
- URL_INTERNAL_PATH =
0x00800000
- URL_FILE_USE_PATHURL =
0x00010000
- URL_DONT_UNESCAPE =
0x00020000
- URL_ESCAPE_PERCENT =
0x00001000
- URL_ESCAPE_SEGMENT_ONLY =
0x00002000
- URL_PARTFLAG_KEEPSCHEME =
0x00000001
- URL_APPLY_DEFAULT =
0x00000001
- URL_APPLY_GUESSSCHEME =
0x00000002
- URL_APPLY_GUESSFILE =
0x00000004
- URL_APPLY_FORCEAPPLY =
0x00000008
- URLIS_URL =
URLIS enum
1
- URLIS_OPAQUE =
2
- URLIS_NOHISTORY =
3
- URLIS_FILEURL =
4
- URLIS_APPLIABLE =
5
- URLIS_DIRECTORY =
6
- URLIS_HASQUERY =
7
Instance Method Summary collapse
-
#UrlEscapeSpaces(pszUrl, pszEscaped, pcchEscaped) ⇒ Object
Macros.
- #UrlIsFileUrl(pszUrl) ⇒ Object
- #UrlUnescapeInPlace(pszUrl, dwFlags) ⇒ Object
Instance Method Details
#UrlEscapeSpaces(pszUrl, pszEscaped, pcchEscaped) ⇒ Object
Macros
124 125 126 127 128 129 130 131 |
# File 'lib/windows/path.rb', line 124 def UrlEscapeSpaces(pszUrl, pszEscaped, pcchEscaped) UrlCanonicalize.call( pszUrl, pszEscaped, pcchEscaped, URL_ESCAPE_SPACES_ONLY | URL_DONT_ESCAPE_EXTRA_INFO ) end |
#UrlIsFileUrl(pszUrl) ⇒ Object
133 134 135 |
# File 'lib/windows/path.rb', line 133 def UrlIsFileUrl(pszUrl) UrlIsA.call(pszUrl, URLIS_FILEURL) end |
#UrlUnescapeInPlace(pszUrl, dwFlags) ⇒ Object
137 138 139 |
# File 'lib/windows/path.rb', line 137 def UrlUnescapeInPlace(pszUrl, dwFlags) UrlUnescape.call(pszUrl, nil, nil, dwFlags | URL_UNESCAPE_INPLACE) end |