mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2024-11-25 03:52:02 -08:00
30 lines
773 B
C#
30 lines
773 B
C#
/*
|
|
* ISO639.cs
|
|
* Copyright (c) 2007, 2008 kbinani
|
|
*
|
|
* This file is part of LipSync.
|
|
*
|
|
* LipSync is free software; you can redistribute it and/or
|
|
* modify it under the terms of the BSD License.
|
|
*
|
|
* LipSync 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 Plugin {
|
|
|
|
public class ISO639 {
|
|
public static bool CheckValidity( string code_string ) {
|
|
try {
|
|
CultureInfo c = CultureInfo.CreateSpecificCulture( code_string );
|
|
} catch {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
}
|