OpenTweenのfork
修訂 | ac706d62639505b54fc578df7f3b0c61c07d658d (tree) |
---|---|
時間 | 2012-05-06 06:08:33 |
作者 | Kimura Youichi <kim.upsilon@bucy...> |
Commiter | Kimura Youichi |
twitter-text-js由来と思われる正規表現にライセンス表示を追加
@@ -46,6 +46,25 @@ namespace OpenTween | ||
46 | 46 | { |
47 | 47 | public class Twitter : IDisposable |
48 | 48 | { |
49 | + #region Regexp from twitter-text-js | |
50 | + | |
51 | + // The code in this region code block incorporates works covered by | |
52 | + // the following copyright and permission notices: | |
53 | + // | |
54 | + // Copyright 2011 Twitter, Inc. | |
55 | + // | |
56 | + // Licensed under the Apache License, Version 2.0 (the "License"); you | |
57 | + // may not use this work except in compliance with the License. You | |
58 | + // may obtain a copy of the License in the LICENSE file, or at: | |
59 | + // | |
60 | + // http://www.apache.org/licenses/LICENSE-2.0 | |
61 | + // | |
62 | + // Unless required by applicable law or agreed to in writing, software | |
63 | + // distributed under the License is distributed on an "AS IS" BASIS, | |
64 | + // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | |
65 | + // implied. See the License for the specific language governing | |
66 | + // permissions and limitations under the License. | |
67 | + | |
49 | 68 | //Hashtag用正規表現 |
50 | 69 | private const string LATIN_ACCENTS = @"\xc0-\xd6\xd8-\xf6\xf8-\xff"; |
51 | 70 | private const string NON_LATIN_HASHTAG_CHARS = @"\u0400-\u04ff\u0500-\u0527\u1100-\u11ff\u3130-\u3185\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF"; |
@@ -77,6 +96,9 @@ namespace OpenTween | ||
77 | 96 | pth2 + |
78 | 97 | qry + |
79 | 98 | ")"; |
99 | + | |
100 | + #endregion | |
101 | + | |
80 | 102 | delegate void GetIconImageDelegate(PostClass post); |
81 | 103 | private readonly object LockObj = new object(); |
82 | 104 | private List<long> followerId = new List<long>(); |