diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2014-05-08 12:00:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-09 16:01:30 +0200 |
commit | 2c9d68ff56d02350eda752d699f5ba0425e06142 (patch) | |
tree | e20bd75d3ce7b42de192ebbfaca66aa86a53a436 /include/svl | |
parent | 797c8e71e9c7e0e99d3aa396804d2e56b1740f4f (diff) |
move INetContentTypes::scan() to INetMIME::scanContentType()
to avoid circular dependencies between svl and tools when using
INetContentType::scan functionality for future handling of data urls in
urlobj.cxx
Change-Id: Iad13286769e8906aebf8208e4f532151ff2f3d13
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/inettype.hxx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/include/svl/inettype.hxx b/include/svl/inettype.hxx index b09261eb0dcd..8f251acae5b9 100644 --- a/include/svl/inettype.hxx +++ b/include/svl/inettype.hxx @@ -251,41 +251,6 @@ public: static bool GetExtensionFromURL(OUString const & rURL, OUString & rExtension); - /** Parse the body of an RFC 2045 Content-Type header field. - - @param pBegin The range (that must be valid) from non-null pBegin, - inclusive. to non-null pEnd, exclusive, forms the body of the - Content-Type header field. It must be of the form - - token "/" token *(";" token "=" (token / quoted-string)) - - with intervening linear white space and comments (cf. RFCs 822, 2045). - The RFC 2231 extension are supported. The encoding of rMediaType - should be US-ASCII, but any Unicode values in the range U+0080..U+FFFF - are interpretet 'as appropriate.' - - @param pType If not null, returns the type (the first of the above - tokens), in US-ASCII encoding and converted to lower case. - - @param pSubType If not null, returns the sub-type (the second of the - above tokens), in US-ASCII encoding and converted to lower case. - - @param pParameters If not null, returns the parameters as a list of - INetContentTypeParameters (the attributes are in US-ASCII encoding and - converted to lower case, the values are in Unicode encoding). If - null, only the syntax of the parameters is checked, but they are not - returned. - - @return Null if the syntax of the field body is incorrect (i.e., does - not start with type and sub-type tokens). Otherwise, a pointer past the - longest valid input prefix. If null is returned, none of the output - parameters will be modified. - */ - static sal_Unicode const * scan( - sal_Unicode const *pBegin, sal_Unicode const * pEnd, - OUString * pType = 0, OUString * pSubType = 0, - INetContentTypeParameterList * pParameters = 0); - static bool parse(OUString const & rMediaType, OUString & rType, OUString & rSubType, INetContentTypeParameterList * pParameters = 0); |