Author: esjr
Date: Fri Jul 12 22:47:42 2013
New Revision: 1502721
URL: http://svn.apache.org/r1502721
Log:
Corrected comment typos
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/Constants.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/DeviceMapClient.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Device.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Pattern.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/FileLoader.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/Loader.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/parser/XmlParser.cs
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/util/Util.cs
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/Constants.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/Constants.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
--- incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/Constants.cs
(original)
+++ incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/Constants.cs
Fri Jul 12 22:47:42 2013
@@ -1,4 +1,4 @@
-#region "Header"
+#region "Header"
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/DeviceMapClient.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/DeviceMapClient.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
---
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/DeviceMapClient.cs
(original)
+++
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/DeviceMapClient.cs
Fri Jul 12 22:47:42 2013
@@ -27,7 +27,7 @@ using System.Text.RegularExpressions;
/// DeviceMap User-Agent Resolver
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's DeviceMapClient.java</remarks>
public sealed class DeviceMapClient
{
@@ -124,7 +124,7 @@ public sealed class DeviceMapClient
/// <summary>
/// Main Resolver function : Returns Attribute dictionary for device
resolved from useragent
/// </summary>
- /// <param name="useragent">user-agnet string to resolve</param>
+ /// <param name="useragent">user-agent string to resolve</param>
/// <returns>IDictionary(Of String, String)</returns>
/// <remarks>-</remarks>
public IDictionary<string, string> Map(string useragent)
@@ -136,7 +136,7 @@ public sealed class DeviceMapClient
Dictionary<string, IList<Device>> hits = new Dictionary<string,
IList<Device>>();
Device winner = null;
string winnerStr = string.Empty;
- //' added ;
+ // The Split
string[] parts = Regex.Split(useragent, "
|-|_|/|\\\\|\\[|\\]|\\(|\\)|;");
for (int i = 0; i <= parts.Length - 1; i++)
{
@@ -150,9 +150,6 @@ public sealed class DeviceMapClient
if (patterns.ContainsKey(pattern))
{
hits[pattern] = patterns[pattern];
- //'For Each device As Device In dlist
- //' Util.debugLog((("Hit found: " & pattern & " => ")
+ device.Id & " ") + device.Patterns)
- //'Next
}
j += 1;
}
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Device.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Device.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
---
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Device.cs
(original)
+++
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Device.cs
Fri Jul 12 22:47:42 2013
@@ -23,7 +23,7 @@ using System.Collections.Generic;
/// Device data
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's Device.java</remarks>
internal sealed class Device
{
@@ -69,7 +69,7 @@ internal sealed class Device
/// Device Pattern collection
/// </summary>
/// <returns>Pattern</returns>
- /// <remarks>Collection of patterns for 'matching' with User-Agent
string</remarks>
+ /// <remarks>Collection of patterns to match with User-Agent
string</remarks>
public Pattern Patterns
{
get { return pattern; }
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Pattern.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Pattern.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
---
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Pattern.cs
(original)
+++
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/data/Pattern.cs
Fri Jul 12 22:47:42 2013
@@ -24,7 +24,7 @@ using System.Text;
/// Device Pattern data
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's Pattern.java</remarks>
internal sealed class Pattern
{
@@ -41,7 +41,7 @@ internal sealed class Pattern
set { patternList.Add(value); }
}
/// <summary>
- /// List of Patterns which <em>at least one</em> must occur in User-Agent
string for a match
+ /// List of Patterns of which <em>at least one</em> must occur in
User-Agent string for a match
/// </summary>
/// <remarks>-</remarks>
public IList<string> OrPattern
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/FileLoader.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/FileLoader.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
---
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/FileLoader.cs
(original)
+++
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/FileLoader.cs
Fri Jul 12 22:47:42 2013
@@ -23,7 +23,7 @@ using System.Collections.Generic;
/// Load Device and Pattern data from XML resource files
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's FileLoader.java</remarks>
internal sealed class FileLoader
{
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/Loader.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/Loader.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
---
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/Loader.cs
(original)
+++
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/loaders/Loader.cs
Fri Jul 12 22:47:42 2013
@@ -24,7 +24,7 @@ using System.Collections.Generic;
/// Load Device and Pattern data from XML StreamReader
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's Loader.java</remarks>
internal sealed class Loader
{
@@ -45,7 +45,7 @@ internal sealed class Loader
#region "Constructor"
/// <summary>
- /// Devfault new Device data Loader
+ /// Default new Device data Loader
/// </summary>
/// <remarks>-</remarks>
public Loader()
@@ -111,7 +111,7 @@ internal sealed class Loader
/// Load Device Pattern data from StreamReader
/// </summary>
/// <param name="inStream">StreamReader</param>
- /// <remarks></remarks>
+ /// <remarks>-</remarks>
public void LoadDevicePatterns(System.IO.StreamReader inStream)
{
XmlParser parser = new XmlParser(inStream);
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/parser/XmlParser.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/parser/XmlParser.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
---
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/parser/XmlParser.cs
(original)
+++
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/parser/XmlParser.cs
Fri Jul 12 22:47:42 2013
@@ -25,7 +25,7 @@ using System.Text;
/// XML Parser
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's XMLParser.java</remarks>
internal sealed class XmlParser
{
Modified:
incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/util/Util.cs
URL:
http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/util/Util.cs?rev=1502721&r1=1502720&r2=1502721&view=diff
==============================================================================
--- incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/util/Util.cs
(original)
+++ incubator/devicemap/trunk/devicemapcsharp/DeviceMap/DeviceMap/util/Util.cs
Fri Jul 12 22:47:42 2013
@@ -24,7 +24,7 @@ using System.Text;
/// Utilities
/// </summary>
/// <author>eberhard speer jr.</author>
-/// <remarks>Apache's DeviceMap Project .Net version
+/// <remarks>Apache DeviceMap Project .Net version
/// ported from Reza Naghibi's Util.java</remarks>
internal sealed class Util
{
@@ -63,7 +63,7 @@ internal sealed class Util
}
}
/// <summary>
- /// Normailze pattern to letters and digits only
+ /// Normalize pattern to letters and digits only
/// </summary>
/// <param name="dirty">string to normalize</param>
/// <returns>String</returns>