fixed typos and style

This commit is contained in:
Günter Obiltschnig
2017-09-01 20:54:11 +02:00
parent cc2401a0c8
commit 968dfe77dc
8 changed files with 13 additions and 13 deletions

View File

@@ -83,7 +83,7 @@ bool strToInt(const char* pStr, I& result, short base, char thSep = ',')
/// Converts zero-terminated character array to integer number; /// Converts zero-terminated character array to integer number;
/// Thousand separators are recognized for base10 and current locale; /// Thousand separators are recognized for base10 and current locale;
/// it is silently skipped but not verified for correct positioning. /// it is silently skipped but not verified for correct positioning.
/// Function returns true if succesful. If parsing was unsuccesful, /// Function returns true if successful. If parsing was unsuccessful,
/// the return value is false with the result value undetermined. /// the return value is false with the result value undetermined.
{ {
if (!pStr) return false; if (!pStr) return false;
@@ -540,7 +540,7 @@ Foundation_API bool strToFloat(const std::string&, float& result, char decSep =
/// If decimal separator and/or thousand separator are different from defaults, they should be /// If decimal separator and/or thousand separator are different from defaults, they should be
/// supplied to ensure proper conversion. /// supplied to ensure proper conversion.
/// ///
/// Returns true if succesful, false otherwise. /// Returns true if successful, false otherwise.
Foundation_API double strToDouble(const char* str); Foundation_API double strToDouble(const char* str);
@@ -553,7 +553,7 @@ Foundation_API bool strToDouble(const std::string& str, double& result, char dec
/// If decimal separator and/or thousand separator are different from defaults, they should be /// If decimal separator and/or thousand separator are different from defaults, they should be
/// supplied to ensure proper conversion. /// supplied to ensure proper conversion.
/// ///
/// Returns true if succesful, false otherwise. /// Returns true if successful, false otherwise.
} // namespace Poco } // namespace Poco

View File

@@ -302,7 +302,7 @@ public:
/// Creates a view (see ConfigurationView) into the configuration. /// Creates a view (see ConfigurationView) into the configuration.
std::string expand(const std::string& value) const; std::string expand(const std::string& value) const;
/// Replaces all occurences of ${<property>} in value with the /// Replaces all occurrences of ${<property>} in value with the
/// value of the <property>. If <property> does not exist, /// value of the <property>. If <property> does not exist,
/// nothing is changed. /// nothing is changed.
/// ///

View File

@@ -38,7 +38,7 @@ class Util_API LoggingConfigurator
/// ///
/// The LoggingConfigurator sets up and connects formatters, channels /// The LoggingConfigurator sets up and connects formatters, channels
/// and loggers. To accomplish its work, the LoggingConfigurator relies on the /// and loggers. To accomplish its work, the LoggingConfigurator relies on the
/// functionality provided by the LoggingFactory und LoggingRegistry classes. /// functionality provided by the LoggingFactory and LoggingRegistry classes.
/// ///
/// The LoggingConfigurator expects all configuration data to be under a root /// The LoggingConfigurator expects all configuration data to be under a root
/// property named "logging". /// property named "logging".

View File

@@ -60,7 +60,7 @@ class Util_API Option
/// ///
/// Option instances are value objects. /// Option instances are value objects.
/// ///
/// Typcally, after construction, an Option object is immediately /// Typically, after construction, an Option object is immediately
/// passed to an Options object. /// passed to an Options object.
/// ///
/// An Option object can be created by chaining the constructor /// An Option object can be created by chaining the constructor

View File

@@ -40,7 +40,7 @@ class Util_API Timer: protected Poco::Runnable
/// sequentially. Therefore, tasks should complete their work as quickly /// sequentially. Therefore, tasks should complete their work as quickly
/// as possible, otherwise subsequent tasks may be delayed. /// as possible, otherwise subsequent tasks may be delayed.
/// ///
/// Timer is save for multithreaded use - multiple threads can schedule /// Timer is safe for multithreaded use - multiple threads can schedule
/// new tasks simultaneously. /// new tasks simultaneously.
/// ///
/// Acknowledgement: The interface of this class has been inspired by /// Acknowledgement: The interface of this class has been inspired by

View File

@@ -30,7 +30,7 @@
// from a DLL simpler. All files within this DLL are compiled with the Util_EXPORTS // from a DLL simpler. All files within this DLL are compiled with the Util_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project // symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see // that uses this DLL. This way any other project whose source files include this file see
// Util_API functions as being imported from a DLL, wheras this DLL sees symbols // Util_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported. // defined with this macro as being exported.
// //
#if defined(_WIN32) && defined(POCO_DLL) #if defined(_WIN32) && defined(POCO_DLL)

View File

@@ -41,8 +41,8 @@ public:
/// Creates the WinRegistryConfiguration. /// Creates the WinRegistryConfiguration.
/// The rootPath must start with one of the root key names /// The rootPath must start with one of the root key names
/// like HKEY_CLASSES_ROOT, e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. /// like HKEY_CLASSES_ROOT, e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
/// All further keys are relativ to the root path and can be /// All further keys are relative to the root path and can be
/// dot seperated, e.g. the path MyService.ServiceName will be converted to /// dot separated, e.g. the path MyService.ServiceName will be converted to
/// HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService\ServiceName. /// HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService\ServiceName.
/// The extraSam parameter will be passed along to WinRegistryKey, to control /// The extraSam parameter will be passed along to WinRegistryKey, to control
/// registry virtualization for example. /// registry virtualization for example.

View File

@@ -194,13 +194,13 @@ std::string WinRegistryKey::getStringExpand(const std::string& name)
throw NotFoundException(key(name)); throw NotFoundException(key(name));
if (size > 0) if (size > 0)
{ {
Poco::Buffer<char> Buffer(size + 1); Poco::Buffer<char> buffer(size + 1);
RegQueryValueExA(_hKey, name.c_str(), NULL, NULL, (BYTE*) Buffer.begin(), &size); RegQueryValueExA(_hKey, name.c_str(), NULL, NULL, (BYTE*) buffer.begin(), &size);
buffer[size] = 0; buffer[size] = 0;
char temp; char temp;
DWORD expSize = ExpandEnvironmentStringsA(buffer, &temp, 1); DWORD expSize = ExpandEnvironmentStringsA(buffer, &temp, 1);
Poco::Buffer<char> expBuffer(expSize); Poco::Buffer<char> expBuffer(expSize);
ExpandEnvironmentStringsA(Buffer.begin(), expBuffer.begin(), expSize); ExpandEnvironmentStringsA(buffer.begin(), expBuffer.begin(), expSize);
std::string result(expBuffer.begin()); std::string result(expBuffer.begin());
return result; return result;
} }