summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/stringToEncodingVersion.m
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-10-13 10:27:32 -0700
committerMark Spruiell <mes@zeroc.com>2017-10-13 10:27:32 -0700
commit8a348b3d67617e056c9119ed42965d7ed8fb6cc9 (patch)
tree3ec107bf15cb8cc911c45427081f9dae28e701de /matlab/lib/+Ice/stringToEncodingVersion.m
parentReplace SELF/DEREF macros with deref template function (diff)
downloadice-8a348b3d67617e056c9119ed42965d7ed8fb6cc9.tar.bz2
ice-8a348b3d67617e056c9119ed42965d7ed8fb6cc9.tar.xz
ice-8a348b3d67617e056c9119ed42965d7ed8fb6cc9.zip
Adding help text to core classes and functions
Diffstat (limited to 'matlab/lib/+Ice/stringToEncodingVersion.m')
-rw-r--r--matlab/lib/+Ice/stringToEncodingVersion.m18
1 files changed, 8 insertions, 10 deletions
diff --git a/matlab/lib/+Ice/stringToEncodingVersion.m b/matlab/lib/+Ice/stringToEncodingVersion.m
index d0c61f5bf72..5fa568a3c85 100644
--- a/matlab/lib/+Ice/stringToEncodingVersion.m
+++ b/matlab/lib/+Ice/stringToEncodingVersion.m
@@ -1,15 +1,13 @@
-%{
-**********************************************************************
-
-Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
-
-This copy of Ice is licensed to you under the terms described in the
-ICE_LICENSE file included in this distribution.
+function r = stringToEncodingVersion(s)
+ % stringToEncodingVersion Converts a string to an encoding version.
+ %
+ % Parameters:
+ % s (char) - The string to convert.
+ %
+ % Returns (Ice.EncodingVersion) - The converted encoding version.
-**********************************************************************
-%}
+ % Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
-function r = stringToEncodingVersion(s)
tokens = regexp(s, '^([0-9]+)\.([0-9]+)$', 'tokens');
if isempty(tokens)
throw(MException('Ice:ArgumentException', 'expecting a version in X.Y format'));