mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2024-11-29 05:12:00 -08:00
9de5d2e51e
git-svn-id: http://svn.sourceforge.jp/svnroot/lipsync@18 b1f601f4-4f45-0410-8980-aecacb008692
32 lines
834 B
C#
32 lines
834 B
C#
#if !JAVA
|
|
/*
|
|
* ISO639.cs
|
|
* Copyright (c) 2008-2009 kbinani
|
|
*
|
|
* This file is part of Boare.Lib.AppUtil.
|
|
*
|
|
* Boare.Lib.AppUtil is free software; you can redistribute it and/or
|
|
* modify it under the terms of the BSD License.
|
|
*
|
|
* Boare.Lib.AppUtil is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
*/
|
|
using System.Globalization;
|
|
|
|
namespace Boare.Lib.AppUtil {
|
|
|
|
internal class iso639 {
|
|
public static bool CheckValidity( string code_string ) {
|
|
try {
|
|
CultureInfo c = CultureInfo.CreateSpecificCulture( code_string );
|
|
} catch {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
}
|
|
#endif
|