Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginUtil.h

Issue 5652794446970880: Rely on libadblockplus for domain extraction (Closed)
Patch Set: Use libadblockplus for domain extraction in APP as well Created April 22, 2014, 7:48 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #pragma once 1 #pragma once
2 #include <string> 2 #include <string>
3 3
4 class BString 4 class BString
5 { 5 {
6 public: 6 public:
7 BString(const std::wstring& value); 7 BString(const std::wstring& value);
8 ~BString(); 8 ~BString();
9 operator BSTR(); 9 operator BSTR();
10 private: 10 private:
11 BSTR value; 11 BSTR value;
12 BString(const BString&); 12 BString(const BString&);
13 BString& operator=(const BString&); 13 BString& operator=(const BString&);
14 }; 14 };
15 15
16 std::wstring HtmlFolderPath(); 16 std::wstring HtmlFolderPath();
17 std::wstring UserSettingsFileUrl(); 17 std::wstring UserSettingsFileUrl();
18 std::wstring FirstRunPageFileUrl(); 18 std::wstring FirstRunPageFileUrl();
19 std::wstring FileUrl(const std::wstring& url); 19 std::wstring FileUrl(const std::wstring& url);
20 CString ExtractDomain(const CString& url);
21 void ReplaceString(std::wstring& input, const std::wstring placeholder, const st d::wstring replacement); 20 void ReplaceString(std::wstring& input, const std::wstring placeholder, const st d::wstring replacement);
OLDNEW

Powered by Google App Engine
This is Rietveld