本文整理汇总了C++中JI2B函数的典型用法代码示例。如果您正苦于以下问题:C++ JI2B函数的具体用法?C++ JI2B怎么用?C++ JI2B使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了JI2B函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JI2B
JBoolean
THXVarTable::OKToRemoveSelectedConstant()
const
{
JPoint cell;
return JI2B( GetEditedCell(&cell) &&
itsVarList->OKToRemoveFunction(cell.y + THXVarList::kUserFnOffset) );
}
示例2: JI2B
inline JBoolean
cbIsQualified
(
const JString& s
)
{
return JI2B(s.Contains(":") || s.Contains("."));
}
示例3: JI2B
JBoolean
JXSaveFileInput::SIsCharacterInWord
(
const JString& text,
const JIndex charIndex
)
{
return JI2B( text.GetCharacter(charIndex) != '.' );
}
示例4: JI2B
JBoolean
JFileExecutable
(
const JCharacter* fileName
)
{
if (getuid() == 0)
{
ACE_stat stbuf;
return JI2B( ACE_OS::stat(fileName, &stbuf) == 0 &&
(stbuf.st_mode & S_IXUSR) != 0 );
}
else
{
return JI2B(JFileExists(fileName) &&
access(fileName, X_OK) == 0);
}
}
示例5: JI2B
JBoolean
JFSBindingList::NeedsRevert()
const
{
time_t t;
return JI2B(!itsSignalFileName.IsEmpty() &&
(JGetModificationTime(itsSignalFileName, &t)).OK() &&
itsSignalModTime != t);
}
示例6: JI2B
JBoolean
JXFSBindingTable::IsEditable
(
const JPoint& cell
)
const
{
return JI2B(cell.x == kPatternColumn || cell.x == kCommandColumn);
}
示例7: assert
JBoolean
JIsRelativePath
(
const JCharacter* path
)
{
assert( !JStringEmpty(path) );
return JI2B( path[0] != '/' && path[0] != '~' );
}
示例8: JI2B
JBoolean
CBCommandTable::IsEditable
(
const JPoint& cell
)
const
{
return JI2B( cell.x != kOptionsColumn );
}
示例9: JI2B
JBoolean
CBGetMDIServer
(
CBMDIServer** mdi
)
{
*mdi = theMDIServer;
return JI2B( theMDIServer != NULL );
}
示例10: JI2B
JBoolean
JNameUsed
(
const JCharacter* name
)
{
ACE_stat info;
return JI2B( ACE_OS::lstat(name, &info) == 0 );
}
示例11: JI2B
JBoolean
JXDockDirector::GetFocusWindow
(
JXWindow** window
)
{
*window = itsFocusWindow;
return JI2B( itsFocusWindow != NULL );
}
示例12: JI2B
JBoolean
JXPathInput::IsCharacterInWord
(
const JString& text,
const JIndex charIndex
)
{
return JI2B( text.GetCharacter(charIndex) != ACE_DIRECTORY_SEPARATOR_CHAR );
}
示例13: JI2B
JBoolean
JXTreeListWidget::IsEditable
(
const JPoint& cell
)
const
{
return JI2B( JIndex(cell.x) != itsToggleOpenColIndex );
}
示例14: JI2B
JBoolean
JXFloatInput::GetValue
(
JFloat* value
)
const
{
return JI2B((GetText()).ConvertToFloat(value) && ValueValid(*value));
}
示例15: JI2B
JBoolean
JDirInfo::IsVisible
(
const JDirEntry& entry
)
const
{
const JDirEntry::Type type = entry.GetType();
const JString& name = entry.GetName();
if (name.GetFirstCharacter() == '.' && name != ".." && !itsShowHiddenFlag)
{
return kJFalse;
}
if (type == JDirEntry::kDir || type == JDirEntry::kDirLink)
{
return JI2B(itsShowDirsFlag &&
(!itsFilterDirsFlag || MatchesNameFilter(entry)) &&
MatchesDirEntryFilter(entry));
}
else if (type == JDirEntry::kFile || type == JDirEntry::kFileLink ||
type == JDirEntry::kBrokenLink)
{
return JI2B(itsShowFilesFlag &&
MatchesNameFilter(entry) &&
MatchesDirEntryFilter(entry));
}
else if (type == JDirEntry::kUnknown || type == JDirEntry::kUnknownLink)
{
return JI2B(itsShowOthersFlag &&
MatchesNameFilter(entry) &&
MatchesDirEntryFilter(entry));
}
else if (type == JDirEntry::kDoesNotExist)
{
return kJFalse;
}
else
{
assert( 0 ); // this should never happen
return kJFalse;
}
}