summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-02-28 20:37:38 +0000
committersr55 <[email protected]>2015-02-28 20:37:38 +0000
commit261db2cdb6572771fac4772f31480fe9a9969474 (patch)
tree73372a6ae2b35ec6872bc8eaf541453ab657d12e /win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs
parent8050f4d120bbe0aa584f6aa9b103abaddb4e104b (diff)
WinGui: Tabs -> Spaces.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6952 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs58
1 files changed, 29 insertions, 29 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs
index 7d059f047..b77c2b9a6 100644
--- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs
+++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs
@@ -16,37 +16,37 @@ namespace HandBrake.ApplicationServices.Interop
using HandBrake.ApplicationServices.Interop.Model;
/// <summary>
- /// Contains utilities for converting language codes.
- /// </summary>
- public static class Languages
- {
- /// <summary>
- /// The list of all languages.
- /// </summary>
- private static IList<Language> allLanguages;
+ /// Contains utilities for converting language codes.
+ /// </summary>
+ public static class Languages
+ {
+ /// <summary>
+ /// The list of all languages.
+ /// </summary>
+ private static IList<Language> allLanguages;
- /// <summary>
- /// Gets a list of all languages.
- /// </summary>
- public static IList<Language> AllLanguages
- {
- get
- {
- return allLanguages
- ?? (allLanguages =
+ /// <summary>
+ /// Gets a list of all languages.
+ /// </summary>
+ public static IList<Language> AllLanguages
+ {
+ get
+ {
+ return allLanguages
+ ?? (allLanguages =
InteropUtilities.ToListFromIterator<iso639_lang_t, Language>(HBFunctions.lang_get_next, HandBrakeUnitConversionHelpers.NativeToLanguage));
- }
- }
+ }
+ }
- /// <summary>
- /// Gets the language object for the given code.
- /// </summary>
- /// <param name="code">The ISO-639-2 code for the language.</param>
- /// <returns>Object that describes the language.</returns>
- public static Language Get(string code)
- {
- iso639_lang_t language = InteropUtilities.ToStructureFromPtr<iso639_lang_t>(HBFunctions.lang_for_code2(code));
+ /// <summary>
+ /// Gets the language object for the given code.
+ /// </summary>
+ /// <param name="code">The ISO-639-2 code for the language.</param>
+ /// <returns>Object that describes the language.</returns>
+ public static Language Get(string code)
+ {
+ iso639_lang_t language = InteropUtilities.ToStructureFromPtr<iso639_lang_t>(HBFunctions.lang_for_code2(code));
return HandBrakeUnitConversionHelpers.NativeToLanguage(language);
- }
- }
+ }
+ }
}