コード例 #1
0
std::string LLUrlEntryHTTPLabel::getLabel(const std::string &url, const LLUrlLabelCallback &cb)
{
	std::string label = getLabelFromWikiLink(url);
	return (!LLUrlRegistry::instance().hasUrl(label)) ? label : getUrl(url);
}
コード例 #2
0
std::string LLUrlEntrySLLabel::getLabel(const std::string &url, const LLUrlLabelCallback &cb)
{
	return getLabelFromWikiLink(url);
}
コード例 #3
0
std::string LLUrlEntrySLLabel::getLabel(const std::string &url, const LLUrlLabelCallback &cb)
{
	std::string ret = getLabelFromWikiLink(url);
	LL_DEBUGS("UrlEntry") << "url " << ret << LL_ENDL;
	return ret;
}
コード例 #4
0
bool LLUrlEntryBase::isWikiLinkCorrect(std::string url)
{
	std::string label = getLabelFromWikiLink(url);
	return (LLUrlRegistry::instance().hasUrl(label)) ? false : true;
}