49 if (!sURL.startsWithIgnoreAsciiCase(
"vnd.sun.star.job:"))
52 sal_Int32
t = std::strlen(
"vnd.sun.star.job:");
58 OUString sPartArguments;
63 (!sPartValue.isEmpty())
74 (!sPartValue.isEmpty())
85 (!sPartValue.isEmpty())
210 const char* pPartIdentifier ,
211 sal_Int32 nPartLength ,
212 OUString& rPartValue ,
213 OUString& rPartArguments )
226 std::u16string_view sValueAndArguments = sPart.substr(nPartLength);
227 std::u16string_view sValue = sValueAndArguments;
230 size_t nArgStart = sValueAndArguments.find(
'?');
231 if (nArgStart != std::u16string_view::npos)
233 sValue = sValueAndArguments.substr(0,nArgStart);
235 sArguments = sValueAndArguments.substr(nArgStart);
239 rPartArguments = sArguments;
bool getService(OUString &sService) const
get the service item of this job URL @descr Because the three possible parts of such URL (event,...
bool isValid() const
knows, if this job URL object hold a valid URL inside
bool getEvent(OUString &sEvent) const
get the event item of this job URL @descr Because the three possible parts of such URL (event,...
OUString m_sAlias
holds the alias part of a job URL
@ E_SERVICE
it's a service
@ E_UNKNOWN
mark a job URL as not valid
bool getAlias(OUString &sAlias) const
get the alias item of this job URL @descr Because the three possible parts of such URL (event,...
OUString m_sEvent
holds the event part of a job URL
static bool implst_split(std::u16string_view sPart, const char *pPartIdentifier, sal_Int32 nPartLength, OUString &rPartValue, OUString &rPartArguments)
searches for a special identifier in the given string and split it @descr If the given identifier cou...
JobURL(const OUString &sURL)
special ctor @descr It initialize this new instance with a (hopefully) valid job URL.
OUString m_sService
holds the service part of a job URL
sal_uInt32 m_eRequest
knows the state of this URL instance
#define JOBURL_SERVICE_STR
#define JOBURL_PART_SEPARATOR
#define JOBURL_SERVICE_LEN
bool matchIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2, sal_Int32 fromIndex=0)